Skip to content
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

Skip getNestMembers security check for array/primitive/void #7759

Merged
merged 1 commit into from
Nov 14, 2019

Conversation

JasonFengJ9
Copy link
Member

Skip getNestMembers security check for array/primitive/void

As per Java doc [1], each of the Class objects representing array types, primitive types, and void returns an array containing only this, and there is no need to perform further security check in such cases.

Verified that this PR fixes #7715
The JTReg test in question can serve the regression test purpose.

[1] https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Class.html#getNestMembers()

closes: #7715

Reviewer: @DanHeidinga

Signed-off-by: Jason Feng fengj@ca.ibm.com

Each of the Class objects representing array types, primitive types, and
void returns an array containing only this, and there is no need to
perform further security check in such cases.


Signed-off-by: Jason Feng <fengj@ca.ibm.com>
Copy link
Member

@DanHeidinga DanHeidinga left a comment

Choose a reason for hiding this comment

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

lgtm

@DanHeidinga
Copy link
Member

Jenkins test sanity zlinux jdk11

@DanHeidinga DanHeidinga merged commit 92fd609 into eclipse-openj9:master Nov 14, 2019
M-Davies pushed a commit to M-Davies/openjdk-tests that referenced this pull request Nov 15, 2019
TestSecurityManagerChecks.java fixed in eclipse-openj9/openj9#7759. VarHandleTestReflection.java fixed in eclipse-openj9/openj9#7742
smlambert pushed a commit to adoptium/aqa-tests that referenced this pull request Nov 18, 2019
* Excludes for JDK8 and 13 openj9

* TestSecurityManagerChecks.java & VarHandleTestReflection.java fixed

TestSecurityManagerChecks.java fixed in eclipse-openj9/openj9#7759. VarHandleTestReflection.java fixed in eclipse-openj9/openj9#7742

* Updated exclude link for ProxyLayerTest.java
@JasonFengJ9 JasonFengJ9 deleted the nestmatesm branch November 25, 2019 16:11
@JasonFengJ9 JasonFengJ9 restored the nestmatesm branch November 25, 2019 16:11
@JasonFengJ9 JasonFengJ9 deleted the nestmatesm branch November 25, 2019 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing JTReg: java/lang/reflect/Nestmates/TestSecurityManagerChecks.java
2 participants