Java new look and feel and possible bug

July 12, 2004

Is the new metal look and feel in java 5 as good as it was adevertised to be? I think so. It looks a lot more exciting than the dull grey that used to be in version 1.4xx while trying it out I also found what may possibly be a bug.

Interestingly this bug was found while I was debugging some of my own code - code that used a TableModel. TableModels and TreeModels are a wee bit hard to study with the aid of a debugger so my usually practice is to put in a few System.out.printlns (I can see some purists shudder) to see what's going on. It's such a statement in the getValue() method of my TreeModel subclass that caused the JVM to throw a gasket.

Exception in thread "main" java.lang.VerifyError: (class: com/radinks/radmin/DBTableModel, method: getValueAt signature: (II)Ljava/lang/Object;) Incompatible object argument for function call at com.radinks.radmin.CentralPanel.jbInit(CentralPanel.java:198) at com.radinks.radmin.CentralPanel.(CentralPanel.java:163) at com.radinks.radmin.RadMain.(RadMain.java:7) at com.radinks.radmin.RadMain.main(RadMain.java:15)

The program even refuses to start up in java 1.5 beta 2 even though it runs perfectly in two different versions of 1.4x. Of course as the version number suggests this is a beta release so we need to consider this as an occupational hazard.

Posted by raditha at July 12, 2004 7:32 AM
Your Ad Here

 

Jabber  |  Linux  |  mySQL  |  PHP  |  Java  |  Site Map  |  Wiki

Downloads  |  About  |  Links  |  Contact  |  Home

 

Copyright © Raditha Dissanayake 2003 - 2007

Terms of Use  |  Privacy

 

 

July 2004
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31