Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903776

jextract generates uncompilable code when C identifier with the name from "java.lang" classes is used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      This was reported in jextract-dev

      https://mail.openjdk.org/pipermail/jextract-dev/2024-July/001843.html

      boolean.h from the email is as follows:

      typedef enum
      {
          Boolean
      } MyTypes;

      jextracted file results in compilation error:

      $ javac boolean_h.java
      boolean_h.java:20: error: illegal forward reference
          static final boolean TRACE_DOWNCALLS = Boolean.getBoolean("jextract.trace.downcalls");
                                                 ^
      boolean_h.java:20: error: int cannot be dereferenced
          static final boolean TRACE_DOWNCALLS = Boolean.getBoolean("jextract.trace.downcalls");
                                                        ^
      2 errors

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

              Created:
              Updated:
              Resolved: