[ROO-3648] Add support to generate Generic Methods Created: 22/Jul/15  Updated: 23/Jul/15  Resolved: 23/Jul/15

Status: Resolved
Project: Spring Roo
Component/s: None
Affects Version/s: 2.0.0.M1
Fix Version/s: 2.0.0.M2

Type: Improvement Priority: Minor
Reporter: Juan Carlos García del Canto Assignee: Juan Carlos García del Canto
Resolution: Complete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Extend Spring Roo Method Builder API to include functionality that generates Generic Methods:

http://docs.oracle.com/javase/tutorial/extra/generics/methods.html

static <T> void fromArrayToCollection(T[] a, Collection<T> c) {
    for (T o : a) {
        c.add(o); // Correct
    }
}


 Comments   
Comment by Juan Carlos García del Canto [ 23/Jul/15 ]

Now Spring Roo has support to generate methods with generic definitions!!

Applied changes on commit:

https://github.com/spring-projects/spring-roo/commit/2031289fae649bb41e2c78e89d8826f811b481b2

Generated at Mon Jul 15 22:17:53 UTC 2019 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.