Hi,

we're in the process of upgrading multiple projects to 5.5 with Java 11 and
ran into some issues with Plastic proxies.

java.lang.IllegalAccessError: Update to non-static final field
my.package.name.Component.fieldName attempted from a different method
(initializeInstance) than the initializer method <init>


The problem appears to be the lazy initialization of fields. Other
projects, like Spock, ran into the same issue:


http://groovy.329449.n5.nabble.com/2-5-3-breaks-Spock-delayed-spock-initializeFields-for-final-fields-td5754016.html


If I understand it correctly the root issue is
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8157181,
which got fixed, making final initialization outside of <init> no
longer possible.


It's not a deal-breaker for us, only a few components were affected.
Just wanted to let you know about it, or at least ask if anyone else
ran into the same issue, and how they dealt with it.


Haven't found an issue in the tracker, should I create one?


Best regards,

Ben

Reply via email to