-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Odd class format error #23727
Comments
/cc @evanchooly |
Seems like a bug in Panache Kotlin |
I created a new project from the website and copied these classes in. I can't recreate it. Can you provide a project that recreates this, @fwgreen ? |
@evanchooly Thanks for taking the time to investigate. Here's a link https://github.com/fwgreen/code-with-quarkus |
I've isolated the cause if not the precise why: your model classes are packageless and that trips up quarkus somehow. Try adding a package declaration to your source and see if that resolves your issues. I'll dig in to the why on this end. |
the bytecode looks exactly same except for the package related changes, of course. perhaps is a jvm/classloading wrinkle? @dmlloyd ? |
Putting the models in a package does resolve the problem. |
I think whatever is generating the code is simply generating an invalid signature, or rather one not accepted by the JVM class verifier. The signature is a piece of data used to establish the generic type of the class (as opposed to the descriptor, which is used to unambiguously identify a class or member). The relevant info can be found in §4.7.9 of the JVM specification version 17. I believe the expected signature string in this case would be |
ah ha! i think i've found the errant entry (I was looking at the wrong/pretransformation .class files):
Others have the appropriate |
fixes quarkusio#23727 (cherry picked from commit b7ba58b)
Describe the bug
Only The
LicensedPracticalNurse
class triggers this error at startup while the other classes work fine (removing it fixes the problem). The snippet below is the entire application.Expected behavior
No response
Actual behavior
How to Reproduce?
No response
Output of
uname -a
orver
Darwin Kernel Version 21.3.
Output of
java -version
openjdk version "17.0.2" 2022-01-18
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.7.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4
Additional information
No response
The text was updated successfully, but these errors were encountered: