Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7016187

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 21
    • 6u25
    • 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.

            acobbs Archie Cobbs
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: