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

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

    Details

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

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: