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

NoClassDefFoundError could benefit from exception chaining

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • hs10
    • 1.4.0
    • hotspot
    • None
    • b06
    • generic
    • generic

        Currently, when the VM throws a NoClassDefFoundError, the details of the causative ClassNotFoundException are lost (only the detail message is preserved). NoClassDefFoundError should be retrofitted with a new constructor that takes a cause (Throwable) and passes it up to Error(Throwable). The VM should use this constructor when it throws a NoClassDefFoundError as a result of a ClassNotFoundException. This will provide a more informative stack trace. In particular, it will indicate which ClassLoader failed to find the class.

              acorn Karen Kinnear (Inactive)
              jjb Josh Bloch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: