Jaybird 4 (and Jaybird 3) use ANTLR 4.7 for the generated keys facility. Unfortunately, ANTLR 4.10 introduced an incompatible change, changing the ATN version, which for example causes problems when trying to use Hibernate 6 in combination with Jaybird 4.
This results in an error:
java.io.InvalidClassException: org.antlr.v4.runtime.atn.ATN; Could not deserialize ATN with version 3 (expected 4).
We either need to upgrade to ANTLR 4.10 or higher (latest is 4.11.1), or backport #680 to Jaybird 4. Backporting is probably preferable as it avoids issues with people relying on earlier ANTLR versions for other things, but might introduce minor backwards incompatibilities with generated keys detection.
Jaybird 4 (and Jaybird 3) use ANTLR 4.7 for the generated keys facility. Unfortunately, ANTLR 4.10 introduced an incompatible change, changing the ATN version, which for example causes problems when trying to use Hibernate 6 in combination with Jaybird 4.
This results in an error:
We either need to upgrade to ANTLR 4.10 or higher (latest is 4.11.1), or backport #680 to Jaybird 4. Backporting is probably preferable as it avoids issues with people relying on earlier ANTLR versions for other things, but might introduce minor backwards incompatibilities with generated keys detection.