-
Notifications
You must be signed in to change notification settings - Fork 405
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
Move to Java 17 #2118
Move to Java 17 #2118
Conversation
Nice. I agree with most of this. What about the |
I have changed it. |
There's a few |
|
c0b6cdb
to
14697b8
Compare
Most of the errors seem to be resolve and I was able to run once with everything passing. However, on some occasions I see the following failures/errors :
|
Import-Package: org.osgi.framework;version="1.3.0" | ||
Bundle-Localization: plugin | ||
Bundle-ActivationPolicy: lazy | ||
Import-Package: org.osgi.framework;version="1.3.0" |
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.
Line 10 duplicates with Line 7.
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.
Fixed.
We also need to update the minimum JDK requirement in client side in case someone is using |
@rgrunber I can reproduce it. Working on that. |
f97575b
to
ed9b391
Compare
test this please |
1 similar comment
test this please |
@testforstephen I have created redhat-developer/vscode-java#2495 |
@rgrunber I have updated the PR. Could you, please, test it again? I have also updated Jenkins job to JDK 17. |
test this please |
Similar to https://ci.eclipse.org/ls/job/jdt-ls-pr/3322/testReport/junit/org.eclipse.jdt.ls.core.internal.handlers/CompletionHandlerTest/testCompletion_AnonymousTypeMoreMethods/ , I saw :
locally. Everything else is passing. |
CompletionHandlerTest fails randomly
You can try to add -Dcompletion.timeout=30000 (30 seconds) when starting the Java LS tests. I have added it to Jenkins job |
test this please |
I think this is in a good state now, and ready to be merged. I would just ask for @testforstephen to confirm. @snjeza , I would just add the following to the message body (below the title) :
We may want to later revisit if it's possible to specify a different JDK than the one used to launch Maven (or Tycho Surefire) for the Gradle daemon used for a particular test. This way we could optionally continue to test older versions of Gradle. Could we have just used the "gradle java home" property through preferences ? For now I think we should get this change in to get the builds working again. |
- Update to Tycho 2.7.2 - Update to jacoco-maven-plugin 0.8.7 - Update to org.mockito.mockito-core 4.x - Update BREE from JavaSE-11 to JavaSE-17 - Use Gradle 7.3 for test projects to ensure compatibility with Java 17 Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
@rgrunber I have added it |
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.
At this point, I think we should merge. Any additional modifications we can make once the build is back to normal.
@rgrunber I have updated the jdt-ls-master build. |
Fixes #2117
You can test the PR locally.
Jenkins fails because it uses Java 11
SendNotificationTest testsand AdvancedOrganizeImportsHandlerTest.testAmbiguousStaticImports require review.Signed-off-by: Snjezana Peco snjezana.peco@redhat.com