[foreign-jextract] RFR: 8249301: jextract fails with CCE when encountering a typedefdecl whose type is FunctionProto

Jorn Vernee jvernee at openjdk.java.net
Tue Jul 14 18:18:11 UTC 2020


Hi,

This patch resolves a CCE observed when parsing a typdef that contains a function-prototype-like function type with an
explicit calling convention specifier. For instance:

typedef void __stdcall foo();

Thanks,
Jorn

-------------

Commit messages:
 - Add missing newline
 - Some typdef decleration cursor might have the FunctionProto type kind instead of Typedef

Changes: https://git.openjdk.java.net/panama-foreign/pull/245/files
 Webrev: https://webrevs.openjdk.java.net/panama-foreign/245/webrev.00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8249301
  Stats: 74 lines in 3 files changed: 72 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/panama-foreign/pull/245.diff
  Fetch: git fetch https://git.openjdk.java.net/panama-foreign pull/245/head:pull/245

PR: https://git.openjdk.java.net/panama-foreign/pull/245


More information about the panama-dev mailing list