OpenJDK6 regression, javax.swing.UIDefaults broken
Clemens Eisserer
linuxhippy at gmail.com
Sun Oct 24 17:49:17 UTC 2010
Hi,
After updating OpenJDK6 recently an application I've written is
broken, when running it as Applet in an AppletViewer.
The app displays boolean values in a JTable, using
JTable.getDefaultRenderer(Class) to get the CellRenderer.
After digging a bit deeper, I found the problem is the
checkAccess()-call when loading "javax.swing.JTable$BooleanRenderer"
in javax.swing.UIDefaults.java : 1103.
The code there looks like this:
> c = Class.forName(className, true, (ClassLoader)cl);
> checkAccess(c.getModifiers()); //Fails, unfourtunatly Exception-Handler kills Exception, so no idea what it is.
> if (methodName != null) {
In a 2-3 weeks old OpenJDK7 repo, I didn't find the
checkAccess()-Call, it simply says:
> c = Class.forName(className, true, (ClassLoader)cl);
> if (methodName != null) {
Looks like some kind of emergency security fix ;)
Oracle's JDK6u22 works fine however.
Should I report this against bugs.sun.com or the OpenJDK bugzilla?
I know for now only OpenJDK seems affected, but I wonder if the oracle
guys look at bugzilla at all?
Thanks, Clemens
PS: Tetscase attached.
More information about the discuss
mailing list