This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 87289 - Source code is not generated for attributes
Summary: Source code is not generated for attributes
Status: VERIFIED WORKSFORME
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Craig Conover
URL:
Keywords: REGRESSION
Depends on:
Blocks: 87012
  Show dependency tree
 
Reported: 2006-10-17 11:35 UTC by Alexandr Scherbatiy
Modified: 2007-10-19 21:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2006-10-17 11:35:03 UTC
Steps to reproduce:

- Create a Java-Platform UML project
- Create a Class diagram
- Put a Class element on the diagram and name it 'MyClass'
- Insert 'private int a' attribite into the element
- Generate Code for the project
 The generated 'MyClass' source code is:
  -------------------------------------------------
  public class MyClass {
    public MyClass() {
    }

    public int getA() {
        return a;
    }

    public void setA(int val) {
        this.a = val;
    }
  }
  -------------------------------------------------

  'private int a;' attribute is missed from the source code.

  The source code is not compiled:

-----------------------------------------------------------------
UMLProject1Sources\src\MyClass.java:7: cannot find symbol
symbol  : variable a
location: class MyClass
        return a;
UMLProject1Sources\src\MyClass.java:11: cannot find symbol
symbol  : variable a
location: class MyClass
        this.a = val;
2 errors
BUILD FAILED (total time: 0 seconds)
-----------------------------------------------------------------
Comment 1 Alexandr Scherbatiy 2006-10-17 11:39:58 UTC
Rise the priority to P1 because it is a regression and it affects
the main functionality of Code generation area.
Comment 2 Craig Conover 2006-10-18 04:02:35 UTC
Unable to reproduce.
Maybe a fix in another area/issue fixed this issue.
If still reproducible, please provide more details if possible.
Maybe OS specific? or any other minor steps that might affect the reproduction
of this issue.

Comment 3 Andrew Korostelev 2006-10-18 12:49:14 UTC
verified in all-nbms-griffin-061018_27