-
Notifications
You must be signed in to change notification settings - Fork 204
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
DataTypeCodec relies on COMPAT fallback for 'BC' era parsing #1379
Comments
pinging @vietj since he was one of the last persons to touch that part |
can you provide a reproducer (a SQL statement would work fine) for this @jerboaa ? |
No, sorry. I have no idea. Perhaps somebody in quarkusio/quarkus#37208 can help? |
@vietj is the following reproducer OK?
All it does is: System.out.println( DataTypeCodec.LDT_MINUS_INFINITY ); Which runs fine with JDK 21 printing:
but fails with JDK 22+24-ea printing:
|
ah right, I thought an interaction with the database was required :-) @zakkak |
@vietj Do you have an ETA when this will be fixed? We will need the updated vertx version then in quarkus too. Thanks! |
@jerboaa not yet, but for sure the issue is on our radar |
OK, thanks! |
Workaround for quarkusio#37208 till eclipse-vertx/vertx-sql-client#1379 gets fixed and released Note that the substitution only happens if necessary (i.e. it won't happen when using JDK < 22, and it won't happen once an upstream fix becomes available. Closes quarkusio#37208
@zakkak I see the bug you filed has been fixed, the JDK 22-EA in which the bug appear has never been released, so I am assuming the next EA will have the bug fixed and that shall be fine ? |
Which bug? This one? https://bugs.openjdk.org/browse/JDK-8320431 That got closed as |
ok so this is not a temporary workaround as far as you can tell |
Yes. |
Version
4.4.6
Context
This quarkus issue made me arrive here and has the full context:
quarkusio/quarkus#37208
Do you have a reproducer?
Yes.
Steps to reproduce
Get a JDK 22 EA version. E.g. from the Adoptium API:
wget -O jdk-22-ea.tar.gz https://api.adoptium.net/v3/binary/latest/22/ea/linux/x64/jdk/hotspot/normal/eclipse
, and untar it.tar -xf jdk-22-ea.tar.gz
Extra
I've filed this bug in upstream OpenJDK and the change is intentional as old code fell back to the COMPAT provider when the
ROOT
locale was being used. The workaround is to useLocale.US
.Can this line be changed to that, please? It should be compatible with older JDKs as well (tested with JDK 17).
vertx-sql-client/vertx-pg-client/src/main/java/io/vertx/pgclient/impl/codec/DataTypeCodec.java
Lines 1079 to 1080 in 8d1c8de
The text was updated successfully, but these errors were encountered: