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

java.lang.classfile.ClassReader - readXXXEntry variants unusable

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: