-
Notifications
You must be signed in to change notification settings - Fork 1.7k
AVRO-4163: [java] add java 17 test module. #3424
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
Conversation
lang/java/pom.xml
Outdated
| <pluginExecutionFilter> | ||
| <groupId>com.diffplug.spotless</groupId> | ||
| <artifactId>spotless-maven-plugin</artifactId> | ||
| <versionRange>[0,)</versionRange> |
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.
This change is not related to the PR.
I'd prefer to be in a separate PR but the Java team might be OK...
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.
Done.
Will move to standalone PR
lang/java/pom.xml
Outdated
| <pluginExecutionFilter> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-plugin-plugin</artifactId> | ||
| <versionRange>[0,)</versionRange> |
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.
Same
| assertEquals("test used this", read.getR1().value()); | ||
| } | ||
|
|
||
| public static class Wrapper { |
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.
Why is this class needed ?
Isn't it possible to put @AvroEncode(using = R1Encoding.class) directly on the record class itself ?
Disclaimer: I haven't used Java (in general, not only the Avro Java SDK) for several years now.
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.
Ah, I see it in your other PR - https://github.com/apache/avro/pull/3425/files#diff-6f4c55d40c67ca00b539c805c113311a15f5bf8c14a85b56e58d1c8f57392a89R33
PR feedback
|
@martin-g made suggestions. Is there anyone I should ping to review the Java side? |
* AVRO-4163: add java 17 test module. * mis click * remove changes from pom.xml PR feedback
This pull request adds Java 17 test support.
This will allow adding support for features like Java records without requiring an update to the Maven build.
This change added tests and can be verified as follows:
This adds a test that if a
@AvroEncodeis specified on a Java record, it works correctly.