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

Common supertype for objects representing classfile entities with descriptor strings

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • None
    • core-libs
    • None

      Many APIs that deal in bytecode must deal with the union of Class | MethodType, which are the two entities that have descriptor strings in class files. With the addition of the XxxRef types coming as part of JEP 303, we propose adding the interface

          interface ClassfileType {
              String descriptorString();
          }

      as supetypes of CLass, MethodType, ClassRef, and MethodTypeRef.

            briangoetz Brian Goetz
            briangoetz Brian Goetz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: