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

4.7: 'Exceptions' attribute should not be listed as "critical"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 10
    • Component/s: specification
    • Labels:
    • Subcomponent:
      vm

      Description

      The 'Exceptions' attribute is listed in 4.7 as one of the attributes that "are critical to correct interpretation of the class file by the Java Virtual Machine".

      This doesn't seem accurate, because the 'Exceptions' attribute merely documents the exceptions declared to be thrown by a method in the Java language. It's metadata for type checking, similar to the 'Signature' attribute. I don't think it has any influence on the behavior of the JVM.

      Propose moving it into one of the other lists (whether #2 or #3, I'm not sureā€”as of JVMS 9, I'm not sure what the difference is between the other two categories).

        Attachments

          Activity

            People

            • Assignee:
              abuckley Alex Buckley
              Reporter:
              dlsmith Dan Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: