File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
java.base/src/main/java/java/lang Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,6 @@ public boolean isArray() {
100
100
return dims .intValue () > 0 || CompilerIntrinsics .isPrimArray (typeId );
101
101
}
102
102
103
- public boolean isPrimitive () {
104
- return CompilerIntrinsics .isPrimitive (CompilerIntrinsics .getTypeIdFromClass ((Class <?>)(Object )this ));
105
- }
106
-
107
103
public Class <? super T > getSuperclass () {
108
104
type_id typeId = CompilerIntrinsics .getTypeIdFromClass ((Class <?>)(Object )this );
109
105
if (CompilerIntrinsics .isJavaLangObject (typeId ) || CompilerIntrinsics .isPrimitive (typeId ) || CompilerIntrinsics .isInterface (typeId )) {
Original file line number Diff line number Diff line change @@ -284,6 +284,11 @@ public Class<?> getNestHost() {
284
284
return qbiccReflectionData ;
285
285
}
286
286
287
+ @ Replace
288
+ public boolean isPrimitive () {
289
+ return (modifiers & (1 << 17 )) != 0 ;
290
+ }
291
+
287
292
// todo: @Replace public Class<?> arrayType() { ... }
288
293
// todo: @Replace public Class<?> componentType() { ... }
289
294
// todo: @Remove private final Class<?> componentType;
You can’t perform that action at this time.
0 commit comments