-
Bug
-
Resolution: Fixed
-
Minor
-
None
The following code causes the script security plugin to fail with an ExceptionInInitializerError:
class C { private final static boolean initialized; static { initialized = true } }
The attached patch file adds testcases to SandboxInterceptorTest that shows this failure (and that setting the field using a field initializer and setting a non-final field via a static initalizer works)
- is duplicated by
-
JENKINS-45446 groovy.lang.ReadOnlyPropertyException when using classes with final fields
-
- Resolved
-
- relates to
-
JENKINS-45629 CPS-transformed field initialization including operations causes NPE in transformation
-
- Resolved
-
-
JENKINS-45483 pipeline scripts don't like final properties being set in the constructor
-
- Closed
-
- links to
(1 links to)
[JENKINS-34599] Static initializers not allowed to set final fields
Workflow | Original: JNJira [ 170760 ] | New: JNJira + In-Review [ 184026 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Remote Link | New: This issue links to "PR 132 (Web Link)" [ 17238 ] |
Link |
New:
This issue is duplicated by |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "groovy-sandbox PR 33 (Web Link)" [ 17243 ] |
Remote Link | New: This issue links to "workflow-cps PR 157 (Web Link)" [ 17259 ] |
Link |
New:
This issue relates to |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |
Link |
New:
This issue relates to |