-
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)