ClassCastException in jextract

Sundararajan Athijegannathan sundararajan.athijegannathan at
Tue May 4 10:35:05 UTC 2021


Will you please run jextract with -J-Djextract.debug=true? This should print stack trace on crash. Also, if possible please post header (assuming open source project) or code snippet from there that cases the mentioned failure.

From: panama-dev <panama-dev-retn at> on behalf of Sebastian Stenzel <sebastian.stenzel at>
Sent: 03 May 2021 11:05
To: panama-dev at <panama-dev at>
Subject: ClassCastException in jextract


I'm currently attempting to jextract a library on macOS Big Sur but I run into exceptions, both with the latest EA build as well as a locally built snapshot (commit 204518d):

class jdk.internal.jextract.impl.TypeImpl$1 cannot be cast to class jdk.incubator.jextract.Type$Delegated (jdk.internal.jextract.impl.TypeImpl$1 and jdk.incubator.jextract.Type$Delegated are in module jdk.incubator.jextract of loader 'app')

I guess that `TypeImpl$1` refers to `TypeImpl.DelegatedBase`, so the cast should be allowed.

Is there anything I can do to get a more detailed output logged by jextract?


More information about the panama-dev mailing list