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

-Xbootclasspath/a causes sanity check assertion with exploded build

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b31

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hseigel Harold Seigel
                Reporter:
                lfoltan Lois Foltan
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: