`javac -h` could generate conflict .h for inner class and class name with '_'

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 21
    • Affects Version/s: 6u25
    • Component/s: tools
    • None
    • b15
    • generic
    • generic

      When a inner class such as O$I.class and a regular class such as O_I.class both exist, javah generates O_I.h for both. The one generated later replaces the earlier one. It also does not handle the fields properly for O_I.class and O$I.class if both have same named fields. The generated field constant names are the same in the jni header file.

            Assignee:
            Archie Cobbs
            Reporter:
            Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: