Issue Details (XML | Word | Printable)

Key: MODELLO-102
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Herve Boutemy
Reporter: Emmanuel Venisse
Votes: 0
Watchers: 1
Operations

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

Generate model classes with JDK 1.5 Generics

Created: 05/Nov/07 04:37 AM   Updated: 22/Dec/08 04:43 PM   Resolved: 22/Dec/08 04:39 PM
Component/s: modello-plugin-java
Affects Version/s: None
Fix Version/s: 1.0

Time Tracking:
Not Specified

Issue Links:
Related

Complexity: Intermediate


 Description  « Hide

Java 5 generation must be optional because some apps use always 1.4 code



Herve Boutemy added a comment - 19/Dec/08 07:29 AM

I found that latest version of javasource at Castor supports Java 5 source code generation

Now I need to see how I can merge this branch with Modello's one, or if I can use Castor's...


Herve Boutemy added a comment - 19/Dec/08 08:58 AM

I tried to use latest castor-codegen component. It showed misc little problems that I can solve.
But there is one feature missing from it, that was added in Modello's javasource fork: the ability ta add an arbitrary source code to generated classes, used to implement codeSegment Modello feature.
I opened CASTOR-2604 issue to ask for the addition of this feature, hoping Castor team will understand this need...


Werner Guttmann added a comment - 20/Dec/08 12:43 PM

Herve, just to let you know that Castor's XML code generator has been able to generate Java 5.0 code for at least two years alreay. Anyhow, I'll have a look at your proposed request in the meantime.


Herve Boutemy added a comment - 22/Dec/08 04:39 PM

done in r1042
generics are generated only in model classes, for Lists and Sets.
generics are not supported for Maps for the moment