Skip to content

GROOVY-10747: Fix illegal access for object clone on JDK16+#1781

Merged
daniellansun merged 2 commits intomasterfrom
GROOVY-10747
Sep 5, 2022
Merged

GROOVY-10747: Fix illegal access for object clone on JDK16+#1781
daniellansun merged 2 commits intomasterfrom
GROOVY-10747

Conversation

@daniellansun
Copy link
Copy Markdown
Contributor

@asfgit asfgit force-pushed the GROOVY-10747 branch 4 times, most recently from e82c4c9 to a74b10b Compare September 4, 2022 09:33
@paulk-asert
Copy link
Copy Markdown
Contributor

LGTM

@daniellansun
Copy link
Copy Markdown
Contributor Author

@paulk-asert Thanks for your reviewing. I'll tweak it a bit later

public class ArrayUtil {
private static final Object[] EMPTY = new Object[0];

public static MethodHandle getCloneArrayMethodHandle() {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

getCloneArrayMethodHandle was added in 4.0.5-SNAPSHOT, so removing it will not break binary compatibility

@daniellansun daniellansun merged commit 2de4344 into master Sep 5, 2022
asfgit pushed a commit that referenced this pull request Sep 5, 2022
* GROOVY-10747: Fix illegal access for object clone on JDK16+

* Minor tweak

(cherry picked from commit 2de4344)
@daniellansun daniellansun deleted the GROOVY-10747 branch September 5, 2022 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants