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

java.lang.instrument: can't change classloader search after init

    Details

    • Subcomponent:
    • Resolved In Build:
      b57
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_9

      Description

      The method appendToBootstrapClassLoaderSearch allows a class to be loaded by,
      say the application classloader, then, after the call, by the bootstrap
      loader -- in violation of classloader semantics.

      There is a similar issue with appendToClassPath.

      Yet, in order to reference the instrumentation support code, an agent must
      be able to set these values. The only safe time to set them is before any
      other class loaders have been used.

      They thus must be bundled with the definition of the agent. The standard
      mechanism for bundling is a JAR file.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alanb Alan Bateman
                Reporter:
                rfield Robert Field
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: