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 6327 - Explorer allowes pasting methods, constuctors etc. into interfaces.
Summary: Explorer allowes pasting methods, constuctors etc. into interfaces.
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-04-18 17:38 UTC by Jan Becicka
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

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 Jan Becicka 2000-04-18 17:38:11 UTC
Methods and constructors are pasted with their implementations.

[Svata] Methods are OK as long as they`re only declared in the source ;-)

[Honza]

It would be nice, if pasting method from class into interface inserts only declaration with semicolon and pasting from interface into class inserts declaration with empty braces {}.
Comment 1 Svata Dedic 2000-06-28 16:23:59 UTC
The meaning of Paste action invoked on an interface is clear when the source
elements are copied into the interface. But if they are Cut from the source
location and only declaration is copied into the target (interface),
unintentional data loss can occur.
Comment 2 Marek Grummich 2000-07-25 09:10:59 UTC
Priority is changed to P4 (normal).
Comment 3 Svata Dedic 2000-08-14 16:40:59 UTC
Fixed by mailto:Ivan.Bradac@netbeans.com: IDE asks for confirmation if method
with a body is Cut/Pasted into an interface since the method's body can't be
pasted.
Fixed for dev-17, waiting for approval for Boston.
Comment 4 Quality Engineering 2003-07-01 13:18:13 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.