Incompatible object argument for function call

October 29, 2004

I have written a few times before about bugs in Java 5 (see Oct 12th entry for example). A more serious bug something which I have often noticed before but not blogged about is the class verification error that is often seen by many a developer (and user of java 5.0). Here is a detailed example of the error (minus the full stack trace)

Exception in thread "main" java.lang.VerifyError: (class: com/radinks/VerifyTest, method: rename signature: (ILjava/lang/String;)Z) Incompatible object argument for function call

A class that runs perfectly well in previous versions of java will obstinately refuse to load in java 5.0. I had dismissed this previously as an issue in the beta, but the beta is long gone so it really should have been resolved.

What's astounding is the fact that this problem has been reported as early as april and it's still not fixed. (ref http://forum.java.sun.com/thread.jsp?forum=481&thread=514766&tstart=0&trange=15). This is a real show stopping bug. Many application or applet that was compatible with older versions of the JRE will simply refuse to function with java 5.

The thread above has a suggestion that will work as a temporary work around pass the '-noverify' parameter to the jvm. As developers you and I can do that but don't expect the end user of your application to do the same.

Posted by raditha at October 29, 2004 2:42 PM
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

 

 

October 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