JDK-8038931 : [TESTBUG] Several regression tests fail to compile in JDK 8u20 nightly build
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: 8u20
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-04-01
  • Updated: 2014-08-18
  • Resolved: 2014-04-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u20 b09Fixed
Related Reports
Relates :  
Description
Testsuite name: Regression
JDK tested: JDK 8u20 nightly  /net/aurora-ds.us.oracle.com/data/export/aurora/sca/scanas411/export/java-re/build/re3/nightlyws/jdk8u-dev/b08_2014-03-29-1901_2606/ws-b08_2014-03-29-1901_2606
OS tested: All

LOG:

/export/local/aurora/sandbox/testbase/test/lib/testlibrary/jdk/testlibrary/Asserts.java:194: error: cannot find symbol
            msg = Objects.toString(msg, "assertSame")
                  ^
  symbol:   variable Objects
  location: class Asserts
/export/local/aurora/sandbox/testbase/test/lib/testlibrary/jdk/testlibrary/Asserts.java:195: error: cannot find symbol
                    + ": expected " + Objects.toString(lhs)
                                      ^
  symbol:   variable Objects
  location: class Asserts
/export/local/aurora/sandbox/testbase/test/lib/testlibrary/jdk/testlibrary/Asserts.java:196: error: cannot find symbol
                    + " to equal " + Objects.toString(rhs);
                                     ^
  symbol:   variable Objects
  location: class Asserts
/export/local/aurora/sandbox/testbase/test/lib/testlibrary/jdk/testlibrary/Asserts.java:197: error: cannot find symbol
            fail(msg);
            ^
  symbol:   method fail(String)
  location: class Asserts
Note: /export/local/aurora/sandbox/testbase/test/java/lang/invoke/MethodHandles/CatchExceptionTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
result: Failed. Compilation failed: Compilation failed


test result: Failed. Compilation failed: Compilation failed
Comments
Problem: - several regression tests fail to compile Root cause: - import statement is forgotten during backporting - assertSame uses fail method which hasn't been backported to 8u20 yet Fix: - added import j.u.Objects statement - replaced 'fail(str)' by 'throw new RE(str)'
24-04-2014

Verified 8u20 b09 on Windows 7 x64.
21-04-2014

> [~sla], so this bug is only about Asserts, right? Yes.
01-04-2014

Some of the failures are caused by the backport of JDK-8038186 which added references to java.util.Objects in test/lib/testlibrary/jdk/testlibrary/Asserts.java without importing java.util.Objects. Other failures seem to be JFR tests that do not explicitly compile all test library dependencies. Why that has started to fail now and not before, I don't know. Assigning to Igor Ignatyev to fix the Asserts.java problem.
01-04-2014

I think this is another sighting of JDK-8034960 and as most of the tests are in the svc area then I will move this bug to core-svc for now.
01-04-2014

Concurrency is equal to 1
01-04-2014

There isn't sufficient information here. Can you send a link to the JTreport, the main thing to know if they are run with -concurrency. If so then this may be related to JDK-8034960.
01-04-2014

It seems to be a test bug, some files were removed from testlibrary.
01-04-2014

fix is under review: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2014-April/000522.html
01-04-2014

shame on me, I didn't test the patch after backporting.
01-04-2014

Yes, something wrong with test/lib/testlibrary/jdk/testlibrary/Asserts.java
01-04-2014

[~sla], so this bug is only about Asserts, right?
01-04-2014

Affected tests: java/net/URLPermission/nstest/lookup.sh java/lang/invoke/MethodHandles/CatchExceptionTest.java sun/management/jmxremote/bootstrap/CustomLauncherTest.java sun/management/jmxremote/startstop/JMXStartStopTest.java java/io/BufferedInputStream/LargeCopyWithMark.java lib/testlibrary/AssertsTest.java lib/testlibrary/OutputAnalyzerReportingTest.java javax/management/monitor/StartStopTest.java
01-04-2014

More affected tests: com/sun/jdi/BadHandshakeTest.java
01-04-2014