Bug 573299 - [test] regressions in NullReferenceTestAsserts in run.javac-1.8 mode
Summary: [test] regressions in NullReferenceTestAsserts in run.javac-1.8 mode
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.20   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.20 M3   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-01 07:45 EDT by Stephan Herrmann CLA
Modified: 2021-05-18 21:09 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2021-05-01 07:45:46 EDT
https://ci.eclipse.org/jdt/job/eclipse.jdt.core-run.javac-1.8/235/ lists 18 new failures, all in NullReferenceTestAsserts.

All failures look similar to this:

testBug127575a - Javac found error(s) but Eclipse did not find any.
----------- Expected ------------

------------ but was ------------
X.java:4: error: cannot access Assert\n
    org.eclipse.core.runtime.Assert.isLegal(o != null);\n
                            ^\n
  bad class file: /home/jenkins/agent/workspace/eclipse.jdt.core-run.javac-1.8/.repository/p2/osgi/bundle/org.eclipse.equinox.common/3.15.0.v20210428-1632/org.eclipse.equinox.common-3.15.0.v20210428-1632.jar(org/eclipse/core/runtime/Assert.class)\n
    class file has wrong version 55.0, should be 52.0\n
    Please remove or make sure it appears in the correct subdirectory of the classpath.\n
1 error\n

This happens since https://git.eclipse.org/c/equinox/rt.equinox.bundles.git/commit/?id=06804a4bd425941257a3d6bfee0f79464ceb2503 "Bug 573093: Update BREE to Java 11"

This implies that the mentioned class Assert is off limits for run.javac-18 tests.
Comment 1 Eclipse Genie CLA 2021-05-01 07:59:59 EDT
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.core/+/180082
Comment 3 Manoj N Palat CLA 2021-05-18 21:09:13 EDT
Verified for 4.20 M3 Version: 2021-06 (4.20)Build id: I20210518-0850