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 - Design Pattern: Memento: Bad source code and design generation
Summary: Design Pattern: Memento: Bad source code and design generation
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Design Center (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@uml
Depends on:
Reported: 2006-09-28 10:57 UTC by bugbridge
Modified: 2009-05-25 21:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2006-09-28 10:57:00 UTC
submitter: ads

Name: xyNNNNNN			Date: 08/06/2004

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 ).


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.