Dear Erwann,
 
 
The UML2Java project started a year ago, came to a halt last september and 
finally came back to life on april, when I was given the project.
 
The available version of UML2Java is the one that was done before september and 
is still experimental. I'm currently working on a new version of UML2Java that 
will hopefully make it into Topcased's next milestone. 
 
In the meantime, you'll have to make all the necessary changes into the 
generated code manually. You can also try to use Papyrus' Java generator (a 
possible merge between this generator and UML2Java might be done for Topcased 
3).
 
==> as STRModeEnumeration is an enumeration, it is strange that the code 
generated tries to instanciate it ?
Yes it is, indeed :(
 
==> Integer is a well known Java type ?
The Integer class (java.lang.Integer) is an object wrapper for the primitive 
int type (other classes, such as Boolean, Byte, Float, ... exist). Yet, Integer 
has two constructors: one that takes an int, and another that takes a String ...
 
I'm really sorry for all the inconvenience. I'll send you an email when the new 
version will be ready for download. An alert will also be sent on UML2Java's 
mailing-list (you can subscribe to it at 
http://gforge.enseeiht.fr/projects/uml2java/).
 
 
Best regards,
Martin
 
--
Martin Neidert
Sopra Group - Division Midi Pyrénées
Tél : 05 34 56 73 18

________________________________

De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Poupart Erwann
Envoyé : mercredi 30 juillet 2008 16:19
À : [email protected]
Objet : [Topcased-users] UML2Java : enumeration and Integers


Hi all,
 
i tried to use the UML2Java generator (Code Generator) from Topcased 2.0.0 and 
i have the following error message in the Java classes generated (see attached 
file) :
 
this.strMode = new STRModeEnumeration(); ==> Cannot instanciate the type 
STRModeEnumeration

==> as STRModeEnumeration is an enumeration, it is strange that the code 
generated tries to instanciate it ?

...

this.ccdTemp = new Integer(); ==> The constructor Integer is undefined ??

==> Integer is a well known Java type ?

thanks for any help,

Best Regards,

Erwann.

 

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to