Java new look and feel and possible bugJuly 12, 2004Is 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.
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.
|
|




