Applet inherited methods are not accessible to javascript code
Hi,
I am running into a weird problem with a relativelly simple JApplet. I have couple of applets in one jar what I can in my html pages. I figured to use proper OOP and the common get/set properties methods are in a super class.
This methods are then used by the javascript to pass/execute code in the java applets.
This works just fine when I view the html test page using file:// protocol. Over a standard http server connection, however, access to these methods gave me error (undefined method). It was the same in all three browsers (IE, Opera and Firefox) on a windows xp sp2 with jre 1.5.0.9. All methods are public Classes are three level package (e.g. xxx.yyy.zzz). Jar file containing the entire thing is signed using a personal certificate and was allowed access when prompted in browser.
Creating a wrapper methods in the applets (return super.getXXX) seems to allow the javascript access to these methods.
I am a person who goes with the flow, if it works in a way just it's fine but I just don't understand why the most basic OOP concept won't work and these applets are simples one, how about more complicated ones.
My first guess that is that reflection is used by the jvm to determine which methods are accessible by checking only implemented methods in the actually listed applet (in the code attribute of the applet along ith mayscript attribute and parameter)
Thanks for any response, I am really interested to know if this is normal or I am missing some configuration parameter.
Pierre

