diff options
author | drchase <none@none> | 2013-10-16 17:55:49 -0400 |
---|---|---|
committer | drchase <none@none> | 2013-10-16 17:55:49 -0400 |
commit | e044bfcae20c6919efbedc5a973e8c492b2e458a (patch) | |
tree | 691a9cc275031b01fb317c4f13a0f63db51b8df6 /src/share/classes/sun/reflect | |
parent | cfef3e9e4408444babb2b312a4f4617617048384 (diff) |
8022718: Runtime accessibility checking: protected class, if extended, should be accessible from another package
Summary: Modify accessibility check; it was muddled about Java vs JVM protection terminology.
Reviewed-by: jrose
Diffstat (limited to 'src/share/classes/sun/reflect')
-rw-r--r-- | src/share/classes/sun/reflect/Reflection.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/classes/sun/reflect/Reflection.java b/src/share/classes/sun/reflect/Reflection.java index 274705fc2..a57b89b2b 100644 --- a/src/share/classes/sun/reflect/Reflection.java +++ b/src/share/classes/sun/reflect/Reflection.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -65,7 +65,7 @@ public class Reflection { to compatibility reasons; see 4471811. Only the values of the low 13 bits (i.e., a mask of 0x1FFF) are guaranteed to be valid. */ - private static native int getClassAccessFlags(Class<?> c); + public static native int getClassAccessFlags(Class<?> c); /** A quick "fast-path" check to try to avoid getCallerClass() calls. */ |