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

jextract should normalize paths in layout names

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • repo-panama
    • repo-panama
    • tools

      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.

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

              Created:
              Updated:
              Resolved: