On Thursday 03 July 2003 13:51, Matthew Pomar wrote:
> I keep getting errors when compiling. It is caused by me trying to use int
> as a return type. The templates keep putting "java.lang." before int (it
> does it with void as well).
>
> Can someone tell me if int and void can be used as a return type? I'm using
> Poseidon for UML CE, and AndroMDA 200 Alpha.

This is a quirk in Poseidon - Poseidon puts autogenerated standard primitive 
types into the "java.lang" namespace, which is plain wrong of course. 
AndroMDA, on the other hand, honors this decision of Poseidon - it's in the 
model, after all :-/

Workaround: In Poseidon, select the data types in java.lang and change their 
namespace to the global namespace (first entry in the "Namespace" dropdown 
list for the data type). This moves the data types to the top level namespace 
so that they are generated with the correct names.

I usually create data types in the global namesapce for all java primitive 
types when I start with a new model. Poseidon then picks up the correct data 
types and doesn't generate its own versions in java.lang

Hope this helps,

Richard
-- 
Richard Kunze 

[ t]ivano Software, Bahnhofstr. 18, 63263 Neu-Isenburg
Tel.: +49 6102 80 99 07 - 0, Fax.: +49 6102 80 99 07 - 1
http://www.tivano.de, [EMAIL PROTECTED] 

Attachment: pgp00000.pgp
Description: signature

Reply via email to