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

jextract generates struct static utils class for typedef names only if struct name is empty

    Details

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

      Description

      typedef struct { int x; } Foo_t; // => jextract generates "CFoo_t"
      typedef struct Foo { int x; } Foo_t; // => jextract generates only "CFoo"

      jextract should generate typedef named class always and generate struct named alias class as well when struct name is non-empty. (least surprise)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: