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

Valhalla: Disallow non-class LoadableDescriptors attributes

XMLWordPrintable

    • vm

      According to the spec:
      "Classes and interfaces mentioned by LoadableDescriptors may optionally be loaded when the referencing class is derived and created (5.3.5), or during early stages of linking (5.4)."

      This language opens up the possibility to use non-class LoadableDescriptors as attributes. For example, arrays or primitive integers. Since it "may optionally be loaded", the VM is free to (and currently does) ignore these when preloading. However, such behaviour should be disallowed explicitly and raise a java.lang.ClassFormatError.

            dlsmith Dan Smith
            phubner Paul Hübner
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: