-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Update antlr4 to 4.10.1 close #19990 #20008
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- What do you think of use src 11 for tool, but 8 for plugin/runtime antlr/antlr4#3450?
- Does ShardingSphere have to do this too? At least JDK8 compatibility must be guaranteed before the Minor Version changes.
I noticed the magic antlr/antlr4#3748. Maybe you can try setting to 4.10.0 locally to edit. |
Since antlr4 4.10, antlr4 has started to use Java 11 for source code compile.Going forward, we are using Java 11 for the source code and the compiled .class files for the ANTLR tool. The Java runtime target, however, and the associated runtime tests use Java 8 (bumping up from Java 7). |
4.10.1 is "Going forward", but 4.10.0 is not. You need to reprocess dynamically generated files for the breaking changes of antlr 4.10.0. This is the first step in fixing CI. |
I looked at the pom file for ANTLR 4.10 and it has started using java11 |
|
It seems that shardingsphere needs to do the same |
I don't think so. I'm currently working on some other PR preparations, so I can't test my ideas right away. If you think there are some easy ideas to deal with it, it's a good idea to submit a new commit to be verified by CI. |
As the project is in a hurry, our team currently uses hibernate core: 6.0.0 (ANTLR 4.9.1) to avoid ANTLR conflicts. Looking forward to shardingsphere update, thanks! |
This PR actually drops ShardingSphere JDBC support for versions of hibernate < 6.0.1, the description of the PR should be changed to reflect this. I'm not sure if you are still working on this PR, as this PR is still marked for review and has unfixed CI bugs. |
Synchronous comments: I suggest you open a new issue to discuss the point in time to migrate the base JDK version of ShardingSphere to JDK11. This issue will be blocked before the new issue is resolved, so I suggest closing this PR. |
Does anyone still focus this PR? |
This PR has no point of continuing to resolve unless #20935 is resolved. |
my project upgrade to 4.10.1 not working
|
@chenzhenjia I'm assuming you have a PR that goes through CI to fix the issue. This only affects users using Hibernate V6. |
@linghengqian I use spring boot3 rc2 and hibernate 6.1.5 |
|
I am not willing to downgrade hibernate to 5.x or 6.x, I provide a gradle solution:
|
|
@terrymanu @linghengqian should we start a thread on mailing list to discuss this topic? I think it is a formal way and maybe we need a voting? |
@zhfeng I'm assuming you'll go to the maillist and open a new thread, since I'm not at all sure how big of a backlash there is to raising the JDK version. If we don't initiate a vote, everything is unknown. |
@linghengqian yeah, I will open a thread on the mailing list for this topic soon. And for sure, the voting is definitely helpful. @terrymanu WDYT? |
@linghengqian It seems that only So is it possible to just change the CI to build with |
|
@linghengqian you can check
I don't understand what you mean here. |
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>8</release>
</configuration>
</plugin>
</plugins>
</build>
|
Thanks @linghengqian and it makes sense to add And it will add a step in |
Please review #20935 |
Well, The only way is to have
|
@zhfeng Hi, I was wondering if you are preparing a PR to change the version of Antlr4? I'm trying to confirm the Antlr4 version of the GraalVM reachability metadata I need to submit at oracle/graalvm-reachability-metadata#198 . |
@linghengqian Yeah, I'm working on the PR and hope to get it out this week. |
It should be suppressed #23937 |
|
Fixes #19990.
Update antlr4 to 4.10.1
Changes proposed in this pull request: