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

java.lang.classfile.ClassReader - readXXXEntry variants unusable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • None
    • core-libs

      Methods related to accessing constantpool entry by offset:
      readEntry(int offset)
      readEntry(int offset, Class<T> cls)
      readEntryOrNull(int offset)
      readMethodHandleEntry(int offset)
      readModuleEntry(int offset)
      readNameAndTypeEntry(int offset)
      readPackageEntry(int offset)
      readUtf8Entry(int offset)
      readUtf8EntryOrNull(int offset)

      Expectation of the API is to provide offset within the classfile which is the index of the pool entry to be read. But the classfile doesn't contain indices. Hence the APIs are unusable

            asotona Adam Sotona
            pgundarlahal Prashanthram Gundarlahally
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: