Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/java.base/share/classes/java/lang/Class.java
Original file line number Diff line number Diff line change
Expand Up @@ -4139,8 +4139,7 @@ int getClassFileVersion() {
* If this {@code Class} object represents a primitive type or
* void, the flags are {@code PUBLIC}, {@code ABSTRACT}, and
* {@code FINAL}.
* If this {@code Class} object represents an array type return 0. This
* is not called in Class but can be called with an array type in Reflection.
* If this {@code Class} object represents an array type, return 0.
*/
int getClassFileAccessFlags() {
return classFileAccessFlags;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,8 @@ public class Reflection {
low 13 bits (i.e., a mask of 0x1FFF) are guaranteed to be
valid. */
public static int getClassAccessFlags(Class<?> c) {
class Holder {
static final JavaLangAccess JLA = SharedSecrets.getJavaLangAccess();
}
return Holder.JLA.getClassFileAccessFlags(c);
JavaLangAccess JLA = SharedSecrets.getJavaLangAccess();
return JLA.getClassFileAccessFlags(c);
}


Expand Down