W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 1997

Re: JigAdmin exception with MS Beta SDK

From: Yves Lafon <ylafon@w3.org>
Date: Tue, 23 Sep 1997 15:40:00 +0200 (MET DST)
To: John Brown <pacifist@worldnet.att.net>
cc: www-jigsaw@w3.org
Message-ID: <Pine.SOL.3.91.970923145152.13393B-100000@tarantula.inria.fr>
On Sun, 21 Sep 1997, John Brown wrote:

> 
> If I run JigAdmin with Microsoft's Beta 2 of SDK 2.0
> under Windows I get the following exception the
> instant that I click on the 'root' folder:
> 
> C:\Jigsaw1\Jigsaw\Jigsaw>jview w3c.jigadm.Main http://localhost:8009
> Exception occurred during event handling:
> java.lang.IllegalAccessError:
>  w3c/tools/widgets/TreeBrowser:
>  method itemAt(I)Lw3c/tools/widgets/TreeNode;
>  is inaccessible
>         at w3c/tools/widgets/TreeBrowser$BrowserMouseListener.mousePressed
>         at java/awt/Component.processMouseEvent
>         at java/awt/Component.processEvent
>         at java/awt/Component.dispatchEventImpl
>         at java/awt/Component.dispatchEvent
>         at java/awt/EventDispatchThread.run

As said in the Inner Classes Specification:
"An inner class is part of the implementation of its enclosing class (or 
classes). As such, it has access to the private members of any enclosing 
class."
so, the private itemAt method of w3c.tools.widget.TreeBroswer is 
accessible from its inner class 
w3c.tools.widgets.TreeBrowser$BrowserMouseListener
You should switch to another Java interpreter that handles well inner 
classes.
 Regards,

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \                Architecture Domain - Jigsaw
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Tuesday, 23 September 1997 09:40:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:26 GMT