changeset 143:9a804b6297c3

6655234: 4/4 j.l.i.: setNativeMethodPrefix does not document that prefix string can be null Summary: Clarify wording for 'prefix' parameter to setNativeMethodPrefix(). Reviewed-by: sspitsyn
author dcubed
date Mon, 24 Mar 2008 17:16:10 -0700
parents 9f75a46fad8b
children 1f45ae5ea94a
files src/share/classes/java/lang/instrument/Instrumentation.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/lang/instrument/Instrumentation.java	Mon Mar 24 17:12:01 2008 -0700
+++ b/src/share/classes/java/lang/instrument/Instrumentation.java	Mon Mar 24 17:16:10 2008 -0700
@@ -636,7 +636,11 @@
      * @param   transformer
      *          The ClassFileTransformer which wraps using this prefix.
      * @param   prefix
-     *          The prefix which has been applied to wrapped native methods.
+     *          The prefix to apply to wrapped native methods when
+     *          retrying a failed native method resolution. If prefix
+     *          is either <code>null</code> or the empty string, then
+     *          failed native method resolutions are not retried for
+     *          this transformer.
      * @throws java.lang.NullPointerException if passed a <code>null</code> transformer.
      * @throws java.lang.UnsupportedOperationException if the current configuration of
      *           the JVM does not allow setting a native method prefix