-
Jul 23rd, 2010, 05:17 AM
#1
Malformed order to import packages
Hello.
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.
import p1.p2.p3.Class
package mypackage
Regards
-
Jul 23rd, 2010, 11:19 AM
#2
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?
cheers
Andy
---
Andy Clement
SpringSource
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules