Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8187436

-Xbootclasspath/a causes sanity check assertion with exploded build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 10
    • 10
    • 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.

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

              Created:
              Updated:
              Resolved: