X Tutup
The Wayback Machine - https://web.archive.org/web/20210131161742/https://github.com/ObeoNetwork/UML-Designer/issues/881
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate JAVA classes with String fields initialized to null #881

Closed
Johann-Angeli opened this issue Aug 9, 2016 · 1 comment
Closed

Generate JAVA classes with String fields initialized to null #881

Johann-Angeli opened this issue Aug 9, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@Johann-Angeli
Copy link

@Johann-Angeli Johann-Angeli commented Aug 9, 2016

When generating JAVA classes from an UML model, I'm unable to generate String field initialized to null even if, in the model, the default value of the field is defined at "Literal Null".

image

The generated source :
/**
* Description of the property uid.
*/
private String uid = "";

Environment

  • Eclipse NEON
  • UMLGen Java Generator, version 3.0.0.201511201014
  • UML Designer, version 7.0.0.201608031416
  • JRE 1.8.0_45
@mbats mbats added the Class diagram label Oct 14, 2016
@mbats mbats added this to the 7.1.0 milestone Oct 14, 2016
@AxelRICHARD
Copy link
Member

@AxelRICHARD AxelRICHARD commented Jan 24, 2017

Hi,

The problem comes from the UMLGen project of Eclipse.
I raised a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=510966, and proposed a patch to fix the problem.

@AxelRICHARD AxelRICHARD self-assigned this Jan 25, 2017
AxelRICHARD added a commit to AxelRICHARD/UML-Modeling that referenced this issue Feb 20, 2017
…zed to null

When generating JAVA classes from an UML model, users were unable to
generate String field initialized to null even if, in the model, the
default value of the field was defined at "Literal Null".

Change-Id: I74d3440d5a9c65a515b7810561c8a4fc8d49f906
Signed-off-by: Axel Richard <axel.richard@obeo.fr>
AxelRICHARD added a commit to AxelRICHARD/UML-Modeling that referenced this issue Feb 21, 2017
…zed to null

When generating JAVA classes from an UML model, users were unable to
generate String field initialized to null even if, in the model, the
default value of the field was defined at "Literal Null".

Change-Id: I74d3440d5a9c65a515b7810561c8a4fc8d49f906
Signed-off-by: Axel Richard <axel.richard@obeo.fr>
@mbats mbats modified the milestones: 7.2.0, 8.0.0 Apr 7, 2017
@mbats mbats closed this in e589a56 May 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
X Tutup