History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-2788
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Thorsten Kamann
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
groovy

StubGenerator generates wrong JavaCode for Collections

Created: 28/Apr/08 10:10 AM   Updated: Tuesday 04:50 AM
Component/s: None
Affects Version/s: 1.5.6
Fix Version/s: 1.5.7

Time Tracking:
Not Specified


 Description  « Hide
Hello,

recentyl I've upgraded to 1.5.6. Now I am getting problems this the GroovyC
in Ant. There are compilation errors.

To demonstrate this, here an example:

I have a simple method in a groovy class:

public java.util.List findAllProcessesForActivityType(java.lang.Long activityTypeId) {

  }

The Stubgenerator generates this:

public java.util.List<E extends java.lang.Object> findAllProcessesForActivityType(java.lang.Long activityTypeId) {
    return (java.util.List<E extends java.lang.Object>)null;
 }

Now the Java-Compiler complains about a missing > at:
java.util.List<E extends java.lang.Object>



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Paul King - 28/Apr/08 07:35 PM
Are you using groovyc in a standard way? Anything further you can supply, e.g. sample build file or attaching source files will speed up replicating the issue. Thanks.

Paul King - 28/Apr/08 07:36 PM
add code tags

Jochen Theodorou - 13/May/08 04:50 AM
this issue sounds like one I fixed for 1.6... I guess this one is already fixed in 1.6 and probably also 1.6...it would be a great help if Thorsten could try to compile his project using the 1.6-beta1 release to see if the error is still there.