-Xbootclasspath/a causes sanity check assertion with exploded build

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 10
    • Affects Version/s: 10
    • Component/s: hotspot
    • b31

      Consider the following test:

      package p;

      public class Test {
          public static void main(String[] args) throws Exception {
              Package p = Test.class.getPackage();
          }
      }

      mkdir bootclasses
      javac -d bootclasses Test.java
      java -Xbootclasspath/a:bootclasses p.Test

      With an exploded build then this trips up on an assert in classLoader.hpp:

      # Internal Error (hotspot/src/share/vm/classfile/classLoader.hpp:403), pid=49574, tid=5123
      # assert(n >= 0 && n < _num_entries) failed: sanity

      Assertion was added as part of JDK-8072061.

            Assignee:
            Harold Seigel (Inactive)
            Reporter:
            Lois Foltan
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: