Skip to content

Fix gradle 9 warnings and bump antlr version #3354

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arnaud-lacurie
Copy link
Collaborator

No description provided.

@arnaud-lacurie arnaud-lacurie added cleanup Non-breaking/stylistic code cleanup dependencies Pull requests that update a dependency file labels May 10, 2025
@arnaud-lacurie arnaud-lacurie marked this pull request as ready for review May 10, 2025 14:28
@@ -198,7 +198,7 @@ public void decodeTerm(DataInput in, FieldInfo fieldInfo, BlockTermState _termSt
} else {
assert absolute == false;
assert termState.singletonDocID != -1;
termState.singletonDocID += BitUtil.zigZagDecode(l >>> 1);
termState.singletonDocID += (int)BitUtil.zigZagDecode(l >>> 1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine to me. The only concern is that this class is borrowed from Lucene, and so making a modification here may make it harder to merge in changes from upstream

@@ -69,7 +69,7 @@ private static BigInteger toIndex(int numBits, long... transposedIndexes) {
for (int i = 0; i < numBits; i++) {
for (final long transposedIndex : transposedIndexes) {
if ((transposedIndex & mask) != 0) {
b[b.length - 1 - bIndex / 8] |= 1 << (bIndex % 8);
b[b.length - 1 - bIndex / 8] |= (byte)(1 << (bIndex % 8));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused how this change relates to Gradle 9. Looking at the logs, there still seem to be a bunch of gradle warnings, and no changes in this PR to fix the gradle files. Meanwhile #3358 Seems to be tackling a similar goal, and has no changes to the java code.
It also seems better to split the gradle 9 warning changes, and the antlr upgrade into separate PRs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually hit this also and decided not to address it in #3358: this change is about upgrading the JDK, not Gradle. If you compile with JDK23 from main, these show up today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Non-breaking/stylistic code cleanup dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants