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

Chain class initialization exceptions into later NoClassDefFoundErrors.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 11
    • hotspot
    • None

      If static initialization of a class fails, a ExceptionInInitializerError
      is thrown. Later accesses to this class will fail, too. They report
      a NoClassDefFoundError. This is misleading, as the class has been
      found in first place but the initialization failed.

      To give more context, retain the previous ExceptionInInitializerError
      and chain it into the NoClassDefFoundError.

            goetz Goetz Lindenmaier
            goetz Goetz Lindenmaier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: