Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaFieldImpl.java @ 23749:d6bd0b9cd0b6
remove uses of setAccessible (JDK-8165434)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 07 Sep 2016 15:17:13 +0200 |
parents | 1d4ce2d19e52 |
children | 09541f94f3e6 |
comparison
equal
deleted
inserted
replaced
23748:3e551611f1fc | 23749:d6bd0b9cd0b6 |
---|---|
20 * or visit www.oracle.com if you need additional information or have any | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package jdk.vm.ci.hotspot; | 23 package jdk.vm.ci.hotspot; |
24 | 24 |
25 import static jdk.vm.ci.hotspot.HotSpotModifiers.jvmFieldModifiers; | |
25 import static jdk.vm.ci.hotspot.HotSpotVMConfig.config; | 26 import static jdk.vm.ci.hotspot.HotSpotVMConfig.config; |
26 | 27 |
27 import java.lang.annotation.Annotation; | 28 import java.lang.annotation.Annotation; |
28 import java.lang.reflect.Field; | 29 import java.lang.reflect.Field; |
29 | 30 |
30 import jdk.vm.ci.meta.JavaType; | 31 import jdk.vm.ci.meta.JavaType; |
31 import jdk.vm.ci.meta.ModifiersProvider; | |
32 import jdk.vm.ci.meta.ResolvedJavaType; | 32 import jdk.vm.ci.meta.ResolvedJavaType; |
33 | 33 |
34 /** | 34 /** |
35 * Represents a field in a HotSpot type. | 35 * Represents a field in a HotSpot type. |
36 */ | 36 */ |
78 return name.hashCode(); | 78 return name.hashCode(); |
79 } | 79 } |
80 | 80 |
81 @Override | 81 @Override |
82 public int getModifiers() { | 82 public int getModifiers() { |
83 return modifiers & ModifiersProvider.jvmFieldModifiers(); | 83 return modifiers & jvmFieldModifiers(); |
84 } | 84 } |
85 | 85 |
86 @Override | 86 @Override |
87 public boolean isInternal() { | 87 public boolean isInternal() { |
88 return (modifiers & config().jvmAccFieldInternal) != 0; | 88 return (modifiers & config().jvmAccFieldInternal) != 0; |