|
|
Re: Upgrade to Eclipse 2022-06-java17 breaks RCPTT [message #1855291 is a reply to message #1854239] |
Thu, 06 October 2022 12:16   |
Eclipse User |
|
|
|
I post my experience with the hope it could help others.
We are migrating to Eclipse 2022-06 / java 17, and we faced both issues Niklaus were mentioning.
"messageCount" flood error
For this, we just migrated our RCPTT environment to the latest nightly, which includes a patch which solves this issue. I took both runner and RCPTT IDE from here
java.lang.ClassNotFoundException: org.eclipse.jface.window.Window$AjcClosure1
If you scroll the error log to the bottom, you notice another type of exception, which looks like this: "warning define generated class failed -- (InaccessibleObjectException) Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass ... etc etc ". The row below explains the reals issue : "module java.base does not "opens java.lang" to unnamed module".
This is a feature of java 17, which doesn't allow indiscriminate reflection anymore by any class in the workspace.
You can instruct RCPTT to launch the AUT adding the following VM argument: --add-opens=java.base/java.lang=ALL-UNNAMED
This solved my problems (the error java.lang.ClassNotFoundException: org.eclipse.jface.window.Window$AjcClosure1 also disappeards).
Best Regards,
Enrico
|
|
|
|
Powered by
FUDForum. Page generated in 0.03341 seconds