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

Add test for URLClassLoader loading invalid class with mismatching CRC32

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: