diff options
Diffstat (limited to 'libjava/gcj/array.h')
-rw-r--r-- | libjava/gcj/array.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libjava/gcj/array.h b/libjava/gcj/array.h index b3ba993..8d28085 100644 --- a/libjava/gcj/array.h +++ b/libjava/gcj/array.h @@ -17,8 +17,15 @@ extern "Java" { class __JArray : public java::lang::Object { +protected: + // This is just a hack to work around a warning emitted by the C++ + // compiler. We initialize `length' evilly, but it doesn't know + // that. + __JArray () : length (0) + { + } public: - jsize length; + const jsize length; friend jsize JvGetArrayLength (__JArray*); }; |