Javah generates incorrect signatures for nested classes

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 6
    • Component/s: tools
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.6.0_01"
      Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
      Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      Given:

      package uapiImpl;

      public interface MediaFileReader extends AudioSource
      {
        public static class Mode
        {
        }
      }

      public class MediaFileReaderImpl implements MediaFileReader
      {
        private native void SetReadingModeProxy(Mode mode);
      }

      javah produces:

      /*
       * Class: uapiImpl_MediaFileReaderImpl
       * Method: SetReadingModeProxy
       * Signature: (Luapi/MediaFileReader/Mode;)V
       */

      notice that Signature reads "(Luapi/MediaFileReader/Mode;)V" instead of "(Luapi/MediaFileReader$Mode;)V"

      It is screwing up the dollar-sign for some reason. If you use FindClass() against the signature it generates it will result in a failure.


      REPRODUCIBILITY :
      This bug can be reproduced always.

            Assignee:
            Unassigned
            Reporter:
            Roger Yeung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: