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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • repo-panama
    • Affects Version/s: repo-panama
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: