equal
deleted
inserted
replaced
275 (the value of <code>Premain-Class</code> attribute is ignored). |
275 (the value of <code>Premain-Class</code> attribute is ignored). |
276 |
276 |
277 |
277 |
278 <h3>Instrumenting code in modules</h3> |
278 <h3>Instrumenting code in modules</h3> |
279 |
279 |
280 Agents that instrument code in named modules may need to arrange for the |
|
281 modules to read other modules. If code is instrumented to invoke a method |
|
282 in a support class in another module, then the module of the instrumented |
|
283 code should read the module of the supporting class. Furthermore, the |
|
284 supporting class will only be accessible to the instrumented code if |
|
285 it is <code>public</code> and in a package that is exported by its module. |
|
286 Agents can use {@link Instrumentation#addModuleReads addModuleReads} to update |
|
287 a module to read another. |
|
288 <p> |
|
289 As an aid to agents that deploy supporting classes on the search path of the |
280 As an aid to agents that deploy supporting classes on the search path of the |
290 bootstrap class loader, or the search path of the class loader that loads |
281 bootstrap class loader, or the search path of the class loader that loads |
291 the main agent class, the Java virtual machine arranges for the module of |
282 the main agent class, the Java virtual machine arranges for the module of |
292 transformed classes to read the unnamed module of both class loaders. |
283 transformed classes to read the unnamed module of both class loaders. |
293 |
284 |