Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.7-beta-2
-
None
-
Ubuntu 9.04 Jaunty Jackalope, Sun Java 6, Groovy HEAD 2009-09-22T07:30+01:00
Description
The test case is a single line file:
def x = 'a' + 'b'
This file can be compiled:
|> groovyc build.gant
|>
and a class file is generated, but if run as a script:
|> groovy build.gant
Caught: org.codehaus.groovy.runtime.metaclass.MissingMethodExceptionNoStack: No signature of method: java.lang.String.positive() is applicable for argument types: () values: []
|>
which seems a bit inconsistent, not to mention lacking in line number, so two errors possibly.