-
Notifications
You must be signed in to change notification settings - Fork 370
Description
Hi,
our company use Java-Thread-Affinity in our project. Unfortunately after upgrade from OpenJDK 8 to OpenJDK 11 Java-Thread-Affinity started cause problems with sonar analysis (https://www.sonarqube.org). The sonar analyzer uses Eclipse java compiler (ECJ) to create abstract syntax tree. I've setted up the minimalistic project for demonstration:
Project: https://github.com/martinroucek/sonar-ecj-problem
Code: https://github.com/martinroucek/sonar-ecj-problem/blob/master/src/main/java/example/Main.java
I understand that sonar analysis maybe is not critical issue for you. But because the problem is in ECJ the library causes compile errors in Eclipse IDE which is still quite popular. When you import demo project into Eclipse it fails with errors:
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.String. Fix the build path then try building this project
The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
Do you have any idea what causes this issue?