-
Notifications
You must be signed in to change notification settings - Fork 99
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
Fixup of initial jt-264-basics merge PR #282 #286
Fixup of initial jt-264-basics merge PR #282 #286
Conversation
@@ -267,6 +270,74 @@ protected Object copyInternal(ObjectLocator locator, Cloneable object) { | |||
} | |||
} | |||
} | |||
protected Object copyInternalJdk11(ObjectLocator locator, Cloneable object) { |
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 method has a lot of copy+paste from the other copyInternal. Perhaps we can just add an argument to adjust behavior to the original method?
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.
I didn't want to change existing behaviour for jdk8 / jdk11 which makes it works well.
The exception is only thrown with jdk17 since jdk16 has locked more aggressively the internal jdk classes.
This can be the default impl with jakarta-jaxb4 since baseline will be jdk11 (jaxb4 requires jdk11)
basics/tools/src/test/java/org/jvnet/jaxb2_commons/reflection/util/test/URIInternalTest.java
Outdated
Show resolved
Hide resolved
dc1e879
to
c7a1e67
Compare
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 looks good! Please add a unit test for the failure case (ie.. class w/ Cloneable interface, but no clone() method) and we'll be good to go!
c7a1e67
to
68121f2
Compare
68121f2
to
44dcda4
Compare
Done, see org.jvnet.jaxb2_commons.lang.tests.DefaultCopyStrategyTest |
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.
LGTM
Fixing build issues of PR #282 : build is now successfull on jdk8/11/17 with maven profile
-P all
Renaming all modules to JAXB Tools :: ...
Fixing build dependencies of samples / tests of jaxb-maven-plugin on jaxb2-basics
Also fixes highsource/jaxb2-basics#130
Also fixes build issue (reflection access disallowed for URI class) on jdk17 (creating new internal class)