Eclipse 2021-06: ClassFormatError accessible: module java.base does not “opens java.lang” to unnamed module

Thanks, @howlger it was Lombok plug-in when using JDK 16. That tweet gave me the reasons: https://github.com/projectlombok/lombok/issues/2810 A workaround : Use Java 15 to start Eclipse or add –illegal-access=warn and –add-opens=java.base/java.lang=ALL-UNNAMED to your eclipse.ini or install a pre-built version (1.18.21) In my situation I had to change eclipse.ini VM path: -vm C:\bin\jdk-15.0.2\bin

How to find out which feature contains a needed plug-in on an Eclipse download site

If you fire up the p2 console, you can use the p2 query language to find all features that depend on a bundle. My example is in Eclipse Juno (4.2): switch to the OSGi console in the console view ss p2.console # to find the console bundle number felix:start -t consoleBundleNumber Now you can issue … Read more

Spring security method cannot decide pattern is MVC or not Spring Boot application exception

A migration occurred due to vulnerability CVE-2023-34035. In the event that you get an error like the following: This method cannot decide whether these patterns are Spring MVC patterns or not. If this endpoint is a Spring MVC endpoint, please use requestMatchers(MvcRequestMatcher); otherwise, please use requestMatchers(AntPathRequestMatcher). You should use a complete RequestMatcher. For example, if … Read more

Why eclipse is generating argument names as arg0,arg1,arg2…. for methods?

Eclipse can’t work out the arguments because it can’t find the source or javadoc attachments. Make sure your source is attached. To check, click on the method call readXXX and press F3 which should open the method declaration. If the source is not attached, Eclipse will say “Source not found” and will allow you to … Read more

tech