GithubHelp home page GithubHelp logo

Comments (13)

vietj avatar vietj commented on June 15, 2024 1

ah right, I thought an interaction with the database was required :-) @zakkak

from vertx-sql-client.

zakkak avatar zakkak commented on June 15, 2024

pinging @vietj since he was one of the last persons to touch that part

from vertx-sql-client.

vietj avatar vietj commented on June 15, 2024

can you provide a reproducer (a SQL statement would work fine) for this @jerboaa ?

from vertx-sql-client.

jerboaa avatar jerboaa commented on June 15, 2024

No, sorry. I have no idea. Perhaps somebody in quarkusio/quarkus#37208 can help?

from vertx-sql-client.

zakkak avatar zakkak commented on June 15, 2024

@vietj is the following reproducer OK?

  1. Grab an OpenJDK 22+24-EA build from https://github.com/adoptium/temurin22-binaries/releases/tag/jdk-22%2B24-ea-beta
git clone https://github.com/zakkak/vertx-pg-1379-reproducer.git
cd vertx-pg-1379-reproducer
mvn package
/path/to/jdk-22+24-ea/bin/java -jar target/vertx-pg-example-1.0-SNAPSHOT-jar-with-dependencies.jar

All it does is:

System.out.println( DataTypeCodec.LDT_MINUS_INFINITY );

Which runs fine with JDK 21 printing:

-4713-11-24T00:00

but fails with JDK 22+24-ea printing:

Exception in thread "main" java.lang.ExceptionInInitializerError
	at com.example.App.main(App.java:13)
Caused by: java.time.format.DateTimeParseException: Text '4714-11-24 00:00:00 BC' could not be parsed at index 20
	at java.base/java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2108)
	at java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:2010)
	at java.base/java.time.LocalDateTime.parse(LocalDateTime.java:494)
	at io.vertx.pgclient.impl.codec.DataTypeCodec.<clinit>(DataTypeCodec.java:1077)
	... 1 more

from vertx-sql-client.

jerboaa avatar jerboaa commented on June 15, 2024

@vietj Do you have an ETA when this will be fixed? We will need the updated vertx version then in quarkus too. Thanks!

from vertx-sql-client.

vietj avatar vietj commented on June 15, 2024

@jerboaa not yet, but for sure the issue is on our radar

from vertx-sql-client.

jerboaa avatar jerboaa commented on June 15, 2024

OK, thanks!

from vertx-sql-client.

zakkak avatar zakkak commented on June 15, 2024

Hi @vietj, I applied the change in my fork and tested it on github actions. Unfortunately I can't do any more testing since I am not familiar with the code base. I also opened #1391 in case it helps.

from vertx-sql-client.

vietj avatar vietj commented on June 15, 2024

@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 ?

from vertx-sql-client.

jerboaa avatar jerboaa commented on June 15, 2024

@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 Not an issue, which essentially means a fix as suggested in #1391 is needed. It's intended behaviour in the JDK which was a side-effect of it working in earlier JDKs and got finally fixed.

from vertx-sql-client.

vietj avatar vietj commented on June 15, 2024

ok so this is not a temporary workaround as far as you can tell

from vertx-sql-client.

jerboaa avatar jerboaa commented on June 15, 2024

ok so this is not a temporary workaround as far as you can tell

Yes.

from vertx-sql-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.