Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.2.2
-
None
Description
Probably not serious, but put this in groovyConsole and compileâ¦
class OtherThing { OtherThing() { def v = null v.hashCode() } }
You'll get an NPE for the v.hashCode() line. If you add another statement before the class def (e.g. def c = null) it doesn't happen.
Weird.