diff options
Diffstat (limited to 'libjava/java/lang/Class.h')
-rw-r--r-- | libjava/java/lang/Class.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libjava/java/lang/Class.h b/libjava/java/lang/Class.h index c94b6d3..62e280c 100644 --- a/libjava/java/lang/Class.h +++ b/libjava/java/lang/Class.h @@ -368,7 +368,7 @@ public: inline jclass getComponentType (void) { - return isArray () ? (* (jclass *) &methods) : 0; + return isArray () ? element_type : 0; } jboolean isAssignableFrom (jclass cls); @@ -554,7 +554,11 @@ private: _Jv_Constants constants; // Methods. If this is an array class, then this field holds a // pointer to the element type. - _Jv_Method *methods; + union + { + _Jv_Method *methods; + jclass element_type; + }; // Number of methods. If this class is primitive, this holds the // character used to represent this type in a signature. jshort method_count; |