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 185097 - clone overridden is protected instead of public
Summary: clone overridden is protected instead of public
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-27 13:48 UTC by guyost
Modified: 2011-11-16 16:40 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
NB Project directory of the project the problem happens (25.48 KB, application/octet-stream)
2010-04-29 12:35 UTC, guyost
Details

Note You need to log in before you can comment on or make changes to this bug.
Description guyost 2010-04-27 13:48:18 UTC
When I want to override the clone method in a class, I start typing "clo", then CTRL+SPACE, then Netbeans displays a choice to override this method, but the automatic declaration is : 

protected Object clone() throws CloneNotSupportedException

instead of 

public Object clone() throws CloneNotSupportedException

the clone method should be public, not protected.
Comment 1 Dusan Balek 2010-04-28 15:35:42 UTC
IMHO enhancement
Comment 2 guyost 2010-04-29 12:35:44 UTC
Created attachment 98275 [details]
NB Project directory of the project the problem happens
Comment 3 guyost 2010-04-29 12:37:03 UTC
Oops really sorry, the attachment "NBProject directory of the project the problem happens" was not dedicated for this bug.

Please ignore it (i don't know how to remove it).