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

Regularize logic for cursor -> position conversion

    XMLWordPrintable

    Details

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

      Description

      The TreeMaker class has a nice helper function to extract a Position from a clang cursor. This logic checks for NPEs at various steps, and returns a default NO_POSITION object if an error occurs.

      Unfortunately, the jextract code is not using this helper function uniformly. This causes issues when running jextract against clang-13 (it appears that the position attached to the internal va_list struct is no longer there).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mcimadamore Maurizio Cimadamore
              Reporter:
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: