static forwarder class should generate enum constants as final static fields

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • repo-panama
    • Affects Version/s: repo-panama
    • Component/s: tools

      Current implementation doesn't have final on the generated fields, which makes them unusable in case statement,

      Here is some example of the error from compiling TensorFlow API based on earlier version of jextract.

      src/main/java/org/tensorflow/Tensor.java:954: error: constant expression required
            case TF_FLOAT:
                 ^
      src/main/java/org/tensorflow/Tensor.java:957: error: constant expression required
            case TF_DOUBLE:

            Assignee:
            Unassigned
            Reporter:
            Henry Jen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: