120 if (currentType instanceof HotSpotUnresolvedJavaType) { 121 // Don't allow unresolved types to hang around forever 122 HotSpotUnresolvedJavaType unresolvedType = (HotSpotUnresolvedJavaType) currentType; 123 ResolvedJavaType resolved = unresolvedType.reresolve(holder); 124 if (resolved != null) { 125 type = resolved; 126 } 127 } 128 return type; 129 } 130 131 public int offset() { 132 return offset; 133 } 134 135 @Override 136 public String toString() { 137 return format("HotSpotField<%H.%n %t:") + offset + ">"; 138 } 139 140 @Override 141 public boolean isSynthetic() { 142 return (config().jvmAccSynthetic & modifiers) != 0; 143 } 144 145 /** 146 * Checks if this field has the {@link Stable} annotation. 147 * 148 * @return true if field has {@link Stable} annotation, false otherwise 149 */ 150 public boolean isStable() { 151 return (config().jvmAccFieldStable & modifiers) != 0; 152 } 153 154 @Override 155 public Annotation[] getAnnotations() { 156 Field javaField = toJava(); 157 if (javaField != null) { 158 return javaField.getAnnotations(); 159 } 160 return new Annotation[0]; 161 } 162 163 @Override 164 public Annotation[] getDeclaredAnnotations() { | 120 if (currentType instanceof HotSpotUnresolvedJavaType) { 121 // Don't allow unresolved types to hang around forever 122 HotSpotUnresolvedJavaType unresolvedType = (HotSpotUnresolvedJavaType) currentType; 123 ResolvedJavaType resolved = unresolvedType.reresolve(holder); 124 if (resolved != null) { 125 type = resolved; 126 } 127 } 128 return type; 129 } 130 131 public int offset() { 132 return offset; 133 } 134 135 @Override 136 public String toString() { 137 return format("HotSpotField<%H.%n %t:") + offset + ">"; 138 } 139 140 /** 141 * Checks if this field has the {@link Stable} annotation. 142 * 143 * @return true if field has {@link Stable} annotation, false otherwise 144 */ 145 public boolean isStable() { 146 return (config().jvmAccFieldStable & modifiers) != 0; 147 } 148 149 @Override 150 public Annotation[] getAnnotations() { 151 Field javaField = toJava(); 152 if (javaField != null) { 153 return javaField.getAnnotations(); 154 } 155 return new Annotation[0]; 156 } 157 158 @Override 159 public Annotation[] getDeclaredAnnotations() { |