This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Reminder: Illegal Package-Private Accesses in libgcj


On Nov 3, 2003, at 6:07 AM, Ranjit Mathew wrote:

    With my crude patch to GCJ for detecting illegal package-private
accesses, I found that the current 3.4 snapshot still contains
these violations:

1. java.lang.VMThrowable illegally accesses
   gnu.gcj.runtime.StackTrace.stackTraceAddrs( )

2. gnu.gcj.runtime.NameFinder illegally accesses
   java.lang.StackTraceElement's constructor

I am currently working on some significant changes the stack trace stuff (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12740) - both of these will go away when I'm done.


3. gnu.awt.xlib.XEventLoop illegally accesses
   gnu.gcj.xlib.XAnyEvent's constructor


How about this?

2003-11-03 Bryce McKinlay <bryce@mckinlay.net.nz>

* gnu/gcj/xlib/XAnyEvent.java (XAnyEvent): Make constructor public.

Index: XAnyEvent.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/xlib/XAnyEvent.java,v
retrieving revision 1.2
diff -u -r1.2 XAnyEvent.java
--- XAnyEvent.java      25 Aug 2003 19:02:29 -0000      1.2
+++ XAnyEvent.java      2 Nov 2003 23:56:37 -0000
@@ -58,7 +58,7 @@
   public final static long MASK_SUBSTRUCTURE_NOTIFY   = 1L<<19,
                           MASK_SUBSTRUCTURE_REDIRECT = 1L<<20;

-  XAnyEvent(Display display)
+  public XAnyEvent(Display display)
   {
     this.display = display;
     init();


Regards


Bryce.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]