Announcement Announcement Module
Collapse
No announcement yet.
Malformed order to import packages Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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

    Comment

    Working...
    X