Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902931

JOL: Rework magic field offset accessor

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
      jol

      Description

      There is a report that current trampoline code introduced by CODETOOLS-7902718 causes split packages failures when used on module path:
        https://mail.openjdk.java.net/pipermail/jol-dev/2021-April/000340.html

      Additionally, this code does not even work for Record introspection with current JDK 17 EA: the private defineClass is not accessible anymore.

      At this point, the only remaining thing left: hack through AccessibleObject overrides. Since this option is dangerous, it should be opt-in, disabled by default.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shade Aleksey Shipilev
              Reporter:
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: