Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.8.0.Release
-
Component/s: User Interface
-
Labels:
-
Number of attachments :
Description
I am using STS 2.3.2.RELEASE and trying out its groovy support.
I noticed that if I use New Wizard to create a groovy class with a main method(), it comes as
static main(args) {
}
But if I create a class with a main() initially and later use content-assist (ctrl-space), then it gets added as
public static void main(String[] args) { }
Little inconsistency, but can it be resolved?
Issue Links
- is superceded by
-
GRECLIPSE-872
Groovy code templates
-
Unfortunately, this is a little bit more difficult to resolve than you would think. The code assist templates that you see come from Java and invoking them in the groovy editor adds the Java code.
The solution here would be to remove the Java templates and replace them with Groovy equivalents.