Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3
    • Component/s: stub generation
    • Labels:
      None
    • Environment:
      Windows XP, Maven 2.0.10
    • Number of attachments :
      1

      Description

      There are problems with Gmaven when using Groovy 1.7 with respect to stub generation, in particular:

      1. Groovy alias import (import X as Y) is not working
      2. Referencing a class A, which exists in two different packages, where items from the two packages are imported, produces a java compile error of the stubs (apparently too much is imported in the stubs, so java sees both definitions of A)

      The problem can be reproduced using the example project attached. Just unpack and type 'mvn install' from within the folder.

        Issue Links

          Activity

          Hide
          Patrick Jayet added a comment -

          Example project showing the issue

          Show
          Patrick Jayet added a comment - Example project showing the issue
          Hide
          Patrick Jayet added a comment -

          This issue is related to GMAVEN-68, although here other aspects of stub generation are problematic (not javadoc or annotation stripping but import statements messed up).

          Show
          Patrick Jayet added a comment - This issue is related to GMAVEN-68 , although here other aspects of stub generation are problematic (not javadoc or annotation stripping but import statements messed up).
          Hide
          Paul King added a comment -

          Groovy trunk and the 1.7.3 snapshot currently being built have a patch that should help fix this problem. If anyone can tests this further, that would be great.

          Show
          Paul King added a comment - Groovy trunk and the 1.7.3 snapshot currently being built have a patch that should help fix this problem. If anyone can tests this further, that would be great.
          Hide
          Jason Dillon added a comment -

          Fixed in latest 1.3-SNAPSHOT. Was able to build attached project w/o any problems.

          Show
          Jason Dillon added a comment - Fixed in latest 1.3-SNAPSHOT. Was able to build attached project w/o any problems.

            People

            • Assignee:
              Unassigned
              Reporter:
              Patrick Jayet
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: