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 194881 - Code Generation stud implementation
Summary: Code Generation stud implementation
Status: STARTED
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-30 17:44 UTC by cordisvictor
Modified: 2011-01-31 13:37 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cordisvictor 2011-01-30 17:44:43 UTC
The generated stubs should be implemented as follows:
"throw new UnsupportedOperationException("Not implemented yet");"
to avoid compile errors but also to prevent the user from using
the classes without implementing the invoked methods.
Comment 1 javydreamercsw 2011-01-31 12:52:14 UTC
Agreed, make sense! I'll try to pinpoint this, Should be easy enough.
Comment 2 cordisvictor 2011-01-31 13:37:17 UTC
It should be easy, the current UML plug-in version is more complex
as it detects the return type,if any, and generates a default value
for the corresponding type. This is great but I think the
"UnsupportedOperationException("not implemented yet");" idea is
safer.
Not my idea, Sun's idea:
  eg: NetBeans code editor "add unimplemented methods" hint:
      generates stubs with bodies which throw the mentioned
      Exception.