groovy

VerifyError on incorrect function call

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5.4
  • Fix Version/s: 1.6-rc-1, 1.5.8, 1.7-beta-1
  • Component/s: parser
  • Labels:
    None
  • Number of attachments :
    0

Description

test.groovy
void testt(String a) {
   println a;
}
testt_test(String a) {
   println "I'm bad"
}
testt(testt_test("asd"));

It was a real PITA till I found the offending line in my code due to the non-informative error message. Anyway groovy rocks!

Activity

Hide
blackdrag blackdrag added a comment -

just "testt_test(String a)" is already enoughz to get that error.. ah yes, the error is "java.lang.VerifyError: (class: test, method: run signature: ()Ljava/lang/Object Expecting to find object/array on stack. Sure, this kind of error should never be seen... but it is no Groovy message, it is one form the JVM. You have the thank the VM guys for giving such nice messages..and yes, these are a PITA. Without an external verifyer I would have killed myself a long time ago

Show
blackdrag blackdrag added a comment - just "testt_test(String a)" is already enoughz to get that error.. ah yes, the error is "java.lang.VerifyError: (class: test, method: run signature: ()Ljava/lang/Object Expecting to find object/array on stack. Sure, this kind of error should never be seen... but it is no Groovy message, it is one form the JVM. You have the thank the VM guys for giving such nice messages..and yes, these are a PITA. Without an external verifyer I would have killed myself a long time ago
Hide
A added a comment -

What's your external verifier, please? I've recently switched to groovy and don't want to come to killing anybody... much less myself

Show
A added a comment - What's your external verifier, please? I've recently switched to groovy and don't want to come to killing anybody... much less myself
Hide
A added a comment -

Actually even only this produces the same error. Seems like it is treated like a statement.

testt_test(String a) {
   println "I'm bad"
}
Show
A added a comment - Actually even only this produces the same error. Seems like it is treated like a statement.
testt_test(String a) {
   println "I'm bad"
}
Hide
A added a comment -

huh, sorry, I've misread your comment.

Show
A added a comment - huh, sorry, I've misread your comment.
Hide
blackdrag blackdrag added a comment -

I use partially my own program based on the verifier from the asm lib or the thatverifier from the asm lib directly.

Show
blackdrag blackdrag added a comment - I use partially my own program based on the verifier from the asm lib or the thatverifier from the asm lib directly.
Hide
blackdrag blackdrag added a comment -

fixed

Show
blackdrag blackdrag added a comment - fixed

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: