6
java.lang.VerifyError: (class: a method: parse signature: 
()Z) Incompatible argument to function

public boolean parse() {


}

What does this error mean and how to fix these kind of errors

1
  • Can you give a complete code example together with some background info about which JVM you're using, host platform, etc? Commented Mar 5, 2009 at 7:58

4 Answers 4

5

Normally this kind of error is related to version problems, you are compiling with a different version of a library than you are running with. There are also some quite subtle varieties of this that can occur with java 1.5 type coercion, where a 1.4 compiler would choose differently. Recompile everything with 1.5, and make sure you're using the same versions.

Sign up to request clarification or add additional context in comments.

Comments

2

It usually is about a java 1.5 or 6 compatibility issue (like trying to compile a Java5 or 6 code with an older 1.4 javac).

Clean all your .class files and rebuild from scratch, checking that you have your JDK and JRE at the same level.


It can also be a bad typecast from a third party class method "return items" to your local ones.

Comments

1

I just found this:

Thrown when the "verifier" detects that a class file, though well formed, contains some sort of internal inconsistency or security problem. Java API

Have you returned a boolean?

Could you please provide more information, which environment is set? The security question is important, I think.

Comments

0

well, first seems to be that the returning value is missong. You should return a boolean value. But this is not the problem. This kind of exception appears when you make a reference which cannot be resolved, like an assignement in a loop

for (i=i; i!=XX;i++)

check such references.

Luis

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.