Add test for URLClassLoader loading invalid class with mismatching CRC32

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs

      When URLClassLoader loads an invalid class file, it checks the CRC32 value against the CRC32 value stated in the JAR file's CEN header.

      If there is a mismatch an IOException with an appropriate message is added as a suppressed exception to the ClassFormatError.

      This unspecified, but long-standing behavior has no test coverage. A test would document the behavior and prevent regressions in this area.

            Assignee:
            Eirik Bjørsnøs
            Reporter:
            Eirik Bjørsnøs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: