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

NoClassDefFoundError omits the original cause of an error

XMLWordPrintable

    • b14

        If StackOverflowError causes NoClassDefFoundError, the original SOE is swallowed and isn't reported in the stack trace.

        The issue happens in specific circumstances, when the class initialization procedure detects an error in class instantiation, tries to throw NCDFE with a correctly discovered cause (an original SOE), and catches another SOE when it tries to get the cause.

        The reproducer is attached as jtreg test to the proposed fix.

        Testing shows that the issue exists in versions 11, 13, 17, and 19.

              inakonechnyy Ilarion Nakonechnyy
              inakonechnyy Ilarion Nakonechnyy
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: