< prev index next >

src/hotspot/share/classfile/javaClasses.hpp

Print this page

        

@@ -320,10 +320,14 @@
   static void set_module(oop java_class, oop module);
   static oop module(oop java_class);
 
   static void set_box_mirror(oop java_class, oop mirror);
   static oop box_mirror(oop java_class);
+  static bool is_box_type(oop java_class) { // Must match "Class.isBoxType()"
+    return box_mirror(java_class) == NULL || oopDesc::equals(box_mirror(java_class), java_class);
+  }
+
   static void set_value_mirror(oop java_class, oop mirror);
   static oop value_mirror(oop java_class);
 
   static oop name(Handle java_class, TRAPS);
 
< prev index next >