|
[
Permalink
| « Hide
]
Jochen Theodorou added a comment - 22/May/07 05:03 AM
hmm, yes... HOL_ISTANBUL is not HOL_INSTANBUL. That should give a different exception... like missing property Exception or maybe even a compile time error.
Yes, sorry my typo. I looked so many times and couldn't see it.
However the error message was a big part of the reason I didn't see it. Can we get this fixed? Obviously I don't think this is a Blocker for 1.1 now, but we need error messages improved as much as possible.
the error message is from the VM, that's why it is so bad. And yes, of course it can be fixed... the compiler should never produce invalid bytecode
As a holding pattern, there is now a try/catch around the getProperty() call in ScriptBytecodeAdapter.getGroovyObjectProperty() for LinkageErrors. There is a TODO to remove the workaround once the real bug is fixed.
For this case, the error message is now Caught: java.lang.ExceptionInInitializerError and if you print the stack trace: java.lang.ExceptionInInitializerError The compiler will now throw an error if you mistype a name while initializing a static property/field. I also removed the workaround Paul added.
|
||||||||||||||||||||||||||||||||||||||||||||||