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

Clarify jextract enum constants generation strategy

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • repo-panama
    • tools

      jextract used to generate enum constants in the header file as private final constants in the main interface.

      With JDK-8201935, those constants are generated as instance methods. JDK-8212560 enables to create a static forwarder class which will generate static constants.

      However, such static forwarder class is only generated when -l is specified with jextract.

      To provide a consistent user experience, we can 1) make -l a required argument, which is desired since beginning anyway as we also want to verify function symbols exist. or 2) Provide other means to get enum constants.


            sundar Sundararajan Athijegannathan
            henryjen Henry Jen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: