Uploaded image for project: 'JBoss Modules'
  1. JBoss Modules
  2. MODULES-442

ModuleClassLoader.defineClass discards the cause of LinkageErrors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 1.12.3.Final, 2.1.4.Final
    • None
    • Core
    • None

    Description

      ModuleClassLoader L488-496 creates a new ClassFormatError from the one thrown at L470, but discards the L470 one's 'cause' field. This means later exception handling cannot make use of the cause (e.g. log it).

      For background, see the discussion at https://github.com/wildfly/wildfly/pull/17108#discussion_r1297718574

      Attachments

        Activity

          People

            ropalka Richard Opalka
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: