j.l.i.: setNativeMethodPrefix does not document that prefix string can be null

XMLWordPrintable

    • b26
    • generic
    • generic
    • Not verified

      Filed By : JCK team
      JDK : java full version "1.6.0-fcs"
      switch/Mode : default
      JCK test owner : http://javaweb.sfbay/jcce/tcks/jck/docs/others/owners.jto
      Failed tests : None

      Problem description
      ===================
      The javadoc specification for the Instrumentation.setNativeMethodPrefix method at:
      http://java.sun.com/javase/6/docs/api/java/lang/instrument/Instrumentation.html#setNativeMethodPrefix(java.lang.instrument.ClassFileTransformer
      ,%20java.lang.String)
      states as follows:
        ---Excerpt-from-spec---
        Parameters:
          ...
          prefix - The prefix which has been applied to wrapped native methods.
        ---End-of-excerpt---

      It would be fine to document that null value for prefix is acceptable but has no effect on the failure handling of native method resolution, i.e. equals to empty prefix.

            Assignee:
            Daniel Daugherty
            Reporter:
            Yuri Gaevsky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: