-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimal changes make IDEA 2023.2 work out-of-box #470
Conversation
Correct maven-compiler-plugin JDK version for IDEA import Compiler bytecode version. Remove JvstTestRoot's constructor, otherwise IDEA cannot show Run icon aside testMethod. Another way is adding suite() static method to those classes. Now we can clone and open project with IDEA 2023.2. Debug single test case with IDEA is very useful.
@@ -151,8 +151,8 @@ | |||
<artifactId>maven-compiler-plugin</artifactId> | |||
<version>3.2</version> | |||
<configuration> | |||
<source>1.8</source> | |||
<target>1.8</target> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a very significant change,Many JDK8 projects may not be able to upgrade dependencies.
I think this will reduce compatibility, it seems unnecessary.
OK... I understand that moving to JDK 11 is too early. Shall we move this back to 1.8? |
I thought we already needed JDK 11. javassist/.github/workflows/maven.yml Line 19 in 8b1296e
I cannot compile master branch under JDK8. Cannot find |
You should at least use JDK-11 for compilation, but the recommended compilation target version is 1.8. |
Sure, I agree. I suggest back to 1.8. For example, this. At least currently, there are many basic libraries that are compatible with 1.8. |
I need some missing knowledge here. Say if we have a class Scratch {
public static void main(String[] args) {
System.out.println(com.sun.jdi.Bootstrap.class.getName());
}
} We can compile it with But I can't comiple it with But I tested output of maven before this PR: |
IDEA only need compiler.xml set <option name="USE_RELEASE_OPTION" value="false" />. fix jboss-javassist#470
I figured it out. Please review #473 |
We are having issues upgrading this dependency. There was no documentation/any release notes telling java 8 support is stopped. We really can't upgrade to java 11 suddenly. |
This project need JDK 11 to compile, but target to JDK 8. IDEA need uncheck "use --release" in Preferences | Build, Execution, Deployment | Compiler | Java Compiler , to build success. fix jboss-javassist#470
Correct maven-compiler-plugin JDK version for IDEA import Compiler bytecode version.
Remove JvstTestRoot's constructor, otherwise IDEA cannot show Run icon aside testMethod. Another way is adding suite() static method to those classes.
Now we can clone and open project with IDEA 2023.2. Debug single test case with IDEA is very useful.
BTW, some test case failed in IDEA due to some file path problem.