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

jextract should normalize paths in layout names

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: repo-panama
    • Component/s: tools
    • Labels:

      Description

      The following test:

      $ cat foo-bar.h

      struct {
         int x;
         int y;
      } foo;

      Generates layout annotations with invalid names:

      $ jextract -d classes foo-bar.h

      $ javap -v classes/foo_bar_h\$anon\$foo_bar_h\$0.class | grep \(anon
        #38 = Utf8 [i32(x)i32(y)](anon$foo-bar_h$0)
            value="[i32(x)i32(y)](anon$foo-bar_h$0)"

      See the "-" character, which is not allowed in the production for layout name.

        Attachments

          Activity

            People

            • Assignee:
              mcimadamore Maurizio Cimadamore
              Reporter:
              mcimadamore Maurizio Cimadamore
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: