-
Notifications
You must be signed in to change notification settings - Fork 142
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
[javac] some differences ecj <-> javac regarding 'recent' features #2959
Comments
+ fix arguments of javac invocations + remove a forgotten test filter relates to eclipse-jdt#2959
+ fix arguments of javac invocations + remove a forgotten test filter relates to eclipse-jdt#2959
The class has been renamed to SwitchPatternTest22. @srikanth-sankaran are those differences of interest for your current work? testInternalDomination_this()
testNaming():
Test case has this comment "javac jdk21 allows components to be named, but they can't be referenced". When those are clarified, we can accept this test class into the paradise of successful run.javac comparison :) |
After #3218 also SwitchPatternTest is on the home stretch with just three test cases where javac reports errors which ecj doesn't see:
And then the errors from #3009 look similar:
|
After first successful builds I have set https://ci.eclipse.org/jdt/job/eclipse.jdt.core-run.javac-23/ to run weekly (on weekends) Currently these test classes have opted in:
More classes will be admitted once they are green in run.javac mode. |
Thanks a lot for doing this! In my first innings as well, I never seem to have paid close attention (scratch that, any attention) to this capability. In fact I seem to have invented a completely new mechanism that is a lot less sophisticated, see This is useful and I can participate in contributing and maintaining this in 2025 - after my reviews of Java 10-23 are over. |
Latest build https://ci.eclipse.org/jdt/job/eclipse.jdt.core-run.javac-24/6/testReport/ (yes, focus is on 24 by now) shows a few failures in javac-comparison. This is with "build 24-ea+22-2649". Running the same tests locally with "build 24-ea+29-3578" those failures no longer occur. I filed https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/5463 which should eventually grant us a green build. |
+ acknowledge fix versions of javac bugs + let InterfaceMethodsTest opt-in to run.javac mode Relates to eclipse-jdt#2959
…3512) + acknowledge fix versions of javac bugs - https://bugs.openjdk.org/browse/JDK-8343306 - https://bugs.openjdk.org/browse/JDK-8337980 + let InterfaceMethodsTest opt-in to run.javac mode Relates to #2959
We have a green build with run.javac=OptIn and these test classes opting in:
|
Recently, these tests had some issues
All these have been resolved as of now, we have a green build again at https://ci.eclipse.org/jdt/job/eclipse.jdt.core-run.javac-24/15/ |
New test participating since #3616
|
Sorry for the late response. I believe
|
I agree, 14.11.1 has this normative sentence:
and this non-normative explanation:
Over to https://mail.openjdk.org/pipermail/compiler-dev/2025-January/029309.html |
For now I disabled https://ci.eclipse.org/jdt/job/eclipse.jdt.core-run.javac-23/ after it showed a flood of failures, many (all?) of which are connected to #3586. Those failures got fixed in BETA_JAVA24 only (71b9831). Focus is on Java 24 anyway. |
+ more infra fixes for run.javac mode + don't run ModuleImportTests at 23 (needs 24-preview) + bookkeeping re https://bugs.openjdk.org/browse/JDK-8348928 (SwitchPatternTest22 doesn't yet OptIn to run.javac) Relates to eclipse-jdt#2959
…3648) + more infra fixes for run.javac mode + don't run ModuleImportTests at 23 (needs 24-preview) + bookkeeping re https://bugs.openjdk.org/browse/JDK-8348928 (SwitchPatternTest22 doesn't yet OptIn to run.javac) Relates to #2959
After next merge from master, SwitchPatternTest22 wants to opt-in to run.javac mode, see #3626. |
While working on #3687 I see LocalEnumTest as another candidate to opt in to run.javac. With pending fixes I see exactly two differences vis a vis javac:
@srikanth-sankaran @mpalat @jarthana let me know if you recall any "recent" changes in either area. Thanks. |
…clipse-jdt#2960) + fix arguments of javac invocations + remove a forgotten test filter relates to eclipse-jdt#2959
Please see https://bugs.openjdk.org/browse/JDK-8309372 Perhaps our implementation has gaps. Could you please raise a ticket after confirming this to be the case and assign it to me? I'll follow up. BTW, I see that |
See emission of |
Please welcome our new member (via #3713):
😎 |
While taking stock of
run.javac
test results regarding Java 23 I observed the following differences which might be within reach for resolution:@see
reference* testInternalDomination_this() (ecj no error, javac 2 errors)
* testNaming() // javac jdk21 allows components to be named, but they can't be referenced
The text was updated successfully, but these errors were encountered: