-
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
Using jvmTarget 11 and kotlin the postgreSQL usage fails #17253
Comments
/cc @evanchooly |
right, that would be nice. But is it doable? We only get to analyze the bytecode, so I guess we could check that such fields aren't marked as |
Yes exactly - it's easy to check in Quarkus if a field is In any case, what we do now (which is to not check at all) isn't optimal because it leads to this kind of runtime error message which can be surprising for users. |
sure it can be done - but I'm not sure if it's super-helpful since we'll be complaining about a Needs to be done in ORM though, not in Quarkus: it's Hibernate ORM that is doing the enhancement. |
I would assume (hope?) that most Kotlin users know the difference between Providing an actionable error message that doesn't highlight |
fine, I'm opening: but I'm not going to jump on it :) |
Thanks :) |
Thank you, switching to But of course I would prefer to use |
@MartinX3 val is about reference mutability and not application semantics, though. It simply can't be |
The fact that it worked in Java 8 was likely accidental. Like @evanchooly describes, a |
Ah, thank you very much. :) |
Closing this as we now require Java 17 as a minimum |
Describe the bug
Using the jvmTarget 11 and kotlin the query of objects from the database fails.
jvmTarget 1.8 works fine.
Expected behavior
A list of DB objects.
Actual behavior
Error
To Reproduce
quarkus-kotlin-java-11-db-error.tar.gz
Steps to reproduce the behavior:
container.sh
./gradlew quarkusDev
POST http://localhost:8080/resteasy-jackson/quarks/ {"name": "test","description": "description"}
GET http://localhost:8080/resteasy-jackson/quarks/
Configuration
Screenshots
N/A
Environment (please complete the following information):
Output of
uname -a
orver
Linux martind-linuxiator 5.12.3-zen1-1-zen #1 ZEN SMP PREEMPT Wed, 12 May 2021 17:54:20 +0000 x86_64 GNU/Linux
Output of
java -version
GraalVM version (if different from Java)
N/A
Quarkus version or git rev
1.13.4.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Additional context
The text was updated successfully, but these errors were encountered: