Jul 23rd, 2010, 05:17 AM
Malformed order to import packages
In STS 2.3.3 M2, with Grails 1.3.3 and win vista.
When I use automatic classes import from STS in a grails project, a malformed order occurs. The imported package(s) is placed before the package declaration, and of course, a syntax error is marked.
Jul 23rd, 2010, 11:19 AM
This is a known issue and typically occurs when the file already has errors in - because the file isn't correctly formed the parser can't understand it properly (the groovy parser is not very well behaved from a parser recovery point of view). As the file can't be understood we don't see the package statement.
Can you confirm it only fails for you when the file has other errors in it?
Tags for this Thread