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

JVMS: clarify description of resolution to indicate that VirtualMachineErrors should not be cached

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • specification
    • None
    • vm
    • 1.6
    • generic
    • generic

      Section 5.4.3 of the VM spec describes how symbolic references in the constant pool are resolved. If the first attempt to resolve a symbolic reference fails then subsequent attempts are required to fail with the same error as the initial attempt. One minor point with the current wording is that the description doesn't make it clear if virtual machine errors (StackOverflowError, OutOfMemoryError, InternalError) should be cached like genuine errors. According to Gilad, these are special cases and not what was intended by the spec. It would be good to have this clarified in a future revision of the specification.

            abuckley Alex Buckley
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: