Variability of member variables is not taken into account
---------------------------------------------------------
Key: JAVA-12
URL: http://jira.andromda.org/browse/JAVA-12
Project: Java Cartridge
Type: Bug
Environment: AndroMDA 3.0/J2SDK 1.4.2/MagicDraw 9.5 CE
Reporter: Sebastien Arbogast
Assigned to: Matthias Bohlen
I tried to set the variability property of a boolean member variable to frozen
and I expected the generated java code to look like that
public class MyClass{
public MyClass(boolean myField){
this.myField = myField;
}
private final boolean myField;
public boolean getMyField(){
return this.myField;
}
}
or at least something like that (even if it's less 'clean', it might be easier
to generate)
public class MyClass{
public MyClass(boolean myField){
this.myField = myField;
}
private boolean myField;
public boolean getMyField(){
return this.myField;
}
private boolean setMyField(boolean myField){
this.myField = myField;
}
}
But I only get the usual code with every access public.
I need that to be able to define fields that can only be set at construction
time (by the service bean) and not at runtime (by the binding framework I'm
using for my forms).
And I don't want to set visibility to private because in this case I couldn't
read the field.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.andromda.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel