Patch: Java: Fix PR 8618
Bryce McKinlay
mckinlay@redhat.com
Sat Jul 10 17:22:00 GMT 2004
On Jul 10, 2004, at 9:21 AM, Andreas Tobler wrote:
> Andreas Schwab wrote:
>
>> Bryce McKinlay <mckinlay@redhat.com> writes:
>>> This patch fixes several problems with access checks on private,
>>> package-private, and protected members, particularly from inner
>>> classes:
>> I get the following error while building libjava:
>> In file included from
>> ../../../libjava/java/util/natResourceBundle.cc:15:
>> ./java/util/ResourceBundle.h:41: error: ISO C++ forbids declaration
>> of `ResourceBundle$BundleKey' with no type
>> ./java/util/ResourceBundle.h:41: error: invalid use of `::'
>> ./java/util/ResourceBundle.h:41: error: expected `;' before '*' token
>> make[3]: *** [java/util/natResourceBundle.lo] Error 1
>
> So do I after applying my previous patchlet.
> Unfortunately I'm not very used to c++ to fix that atm.
> Any ideas ?
Sorry, I forgot to commit part of my patch. I'm checking in this to fix
it.
Bryce
2004-07-10 Bryce McKinlay <mckinlay@redhat.com>
* gcj/javaprims.h: Regenerate CNI namespace definitions.
Index: gcj/javaprims.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gcj/javaprims.h,v
retrieving revision 1.49
diff -u -r1.49 javaprims.h
--- gcj/javaprims.h 16 Apr 2004 16:27:18 -0000 1.49
+++ gcj/javaprims.h 10 Jul 2004 14:42:30 -0000
@@ -338,6 +338,7 @@
class RandomAccess;
class RandomAccessSubList;
class ResourceBundle;
+ class ResourceBundle$BundleKey;
class Set;
class SimpleTimeZone;
class SortedMap;
More information about the Gcc-patches
mailing list