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 86008

Summary: Design Pattern: Memento: Bad source code and design generation
Product: uml Reporter: bugbridge <bugbridge>
Component: Design CenterAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker CC: ads
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description bugbridge 2006-09-28 10:57:00 UTC
submitter: ads

Description:
Name: xyNNNNNN			Date: 08/06/2004



Bow06.
Apply behavioral Memento pattern.
Generated classes has number of sensless design methods .
Class Originator has method CreateMemento that has return type void.
Class Memento has method GetState that has return type void.
All this method should return some object ( CreateMemento should has name 
createMemento and return Memento object type; GetState should has name
getState and return State return type ).

======================================================================

Evaluation:
Can be fixed in GoF.etpat file.
xxx@xxxx 2004-09-09

Well, this has been fixed, but I'm not very happy with the fix yet. The getState
though returns the state, I would prefer it to return mState. Similarly the
setState should probably set the mState to val.

Will revisit later. I guess there is a bug in code-generation.
xxxx@xxxx 2004-09-22
Comment 1 Peter Lam 2008-06-11 00:15:57 UTC
still exists in 6.5 but rather minor issue.