Modello

Generate model classes with JDK 1.5 Generics

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.0
  • Component/s: modello-plugin-java
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

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

Issue Links

Activity

Hide
Herve Boutemy added a comment -

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...

Show
Herve Boutemy added a comment - 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...
Hide
Herve Boutemy added a comment -

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...

Show
Herve Boutemy added a comment - 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...
Hide
Werner Guttmann added a comment -

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.

Show
Werner Guttmann added a comment - 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.
Hide
Herve Boutemy added a comment -

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

Show
Herve Boutemy added a comment - done in r1042 generics are generated only in model classes, for Lists and Sets. generics are not supported for Maps for the moment

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: