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

Chain class initialization exceptions into later NoClassDefFoundErrors.

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 11
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: