Results 1 to 2 of 2

Thread: Malformed order to import packages

  1. #1
    Join Date
    Jul 2010
    Posts
    1

    Default 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. #2
    Join Date
    May 2009
    Location
    Vancouver
    Posts
    274

    Default

    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
  •