java.lang.classfile.ClassReader - readXXXEntry variants unusable

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: None
    • Component/s: 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

            Assignee:
            Adam Sotona
            Reporter:
            Prashanthram Gundarlahally
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: