JDK-8152636 : TestHasNegatives.java fails after Jigsaw changes were integrated
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-03-24
  • Updated: 2016-04-14
  • Resolved: 2016-03-29
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 9
9 b114Fixed
Related Reports
Relates :  
Relates :  
Sub Tasks
JDK-8152640 :  
Description
The test compiler/intrinsics/string/TestHasNegatives.java fails after the Jigsaw changes were integrated. More precisely, the test fails when the changes by JDK-8144693 were attempted to be propagated from hs-comp to hs.

/scratch/opt/jprt/T/P1/073032.zmajo/s/hotspot/test/compiler/intrinsics/string/TestHasNegatives.java:32: error: package exists in another module: java.base
package java.lang;
^
/scratch/opt/jprt/T/P1/073032.zmajo/s/hotspot/test/compiler/intrinsics/string/TestHasNegatives.java:34: error: StringCoding is not public in java.lang; cannot be accessed from outside package
import java.lang.StringCoding;
                ^
/scratch/opt/jprt/T/P1/073032.zmajo/s/hotspot/test/compiler/intrinsics/string/TestHasNegatives.java:97: error: cannot find symbol
                    r = StringCoding.hasNegatives(tBa, off, len);
                        ^
  symbol:   variable StringCoding
  location: class TestHasNegatives
/scratch/opt/jprt/T/P1/073032.zmajo/s/hotspot/test/compiler/intrinsics/string/TestHasNegatives.java:116: error: cannot find symbol
        (new TestHasNegatives()).run();
             ^
  symbol:   class TestHasNegatives
  location: class TestHasNegatives
4 errors
Comments
ILW = testbug, fails with jigsaw, no workaround = LHH = P4
24-03-2016