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

Investigate the "testing mode" that may relax encapsulation

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: other-libs
    • Labels:
      None

      Description

      Instrumentation::redefineModule provides the API for java agents to break into modules for class file transformation. Instrumentation is designed for java agents for monitoring, tracing, profiling, etc.

      Testing may do bytecode instrumentation and redefine any class or any modules. Such testing agent would solely be run for testing purpose whereas a library/java agent doing monitoring may run in the production environment.

      It's best to separate testing requirements from the requirement for java agent doing instrumentation and look into solutions specific for testing.

      This issue was brought up [1].
      [1] http://mail.openjdk.java.net/pipermail/jigsaw-dev/2018-April/013720.html

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mchung Mandy Chung
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: