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

jextract fails when proprocessor macro and anonymous enum constant have the same name

XMLWordPrintable

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

      See also: https://mail.openjdk.java.net/pipermail/panama-dev/2019-May/005268.html

      Simple test case:

      enum {
         Foo
      };

      #define Foo 344

      jextract generates "Foo" method (and static final constant for static forwarder) twice and so resulting code fails to compile.

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: