Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.0.0alpha
-
Fix Version/s: None
-
Component/s: Inferencing Engine
-
Labels:
-
Environment:springsource-tool-suite-groovy-2.1.0.SR01-e3.5-macosx-cocoa-x86_64-installer.dmg
-
Number of attachments :
Description
Test.groovy
class Test
{ @Delegate TestDelegate test = new TestDelegate(name:"Scott") }class TestDelegate
{ String name }TestRun.java
public class TestRun {
public static void main(String args[])
}
TestRun will compile and run, but STS shows compilation errors saying that method Test.getName() does not exist.
Just wanted to mention that groovyc joint compilation isn't able to compile this either, and probably won't be for the foreseeable future. The Groovy Eclipse plugin is in a better position here due its deep integration with the Eclipse Java compiler, but given the limitation of groovyc, I wouldn't consider this a must have feature for the first release.