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 11140 - Copy/Paste does not work on initializers
Summary: Copy/Paste does not work on initializers
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-06 14:08 UTC by Jan Becicka
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (7.00 KB, text/plain)
2001-04-06 14:09 UTC, Jan Becicka
Details
NPE thrown from IndentWriter. (4.20 KB, text/plain)
2001-07-20 20:30 UTC, Svata Dedic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2001-04-06 14:08:09 UTC
[Release32-22]
Try to Copy/Paste on initializers.
Exceptions are thrown.
Comment 1 Jan Becicka 2001-04-06 14:09:29 UTC
Created attachment 1027 [details]
Exception
Comment 2 Svata Dedic 2001-04-06 14:16:38 UTC
It is inside indentation engine.
Static initializers are OK, although they are sometimes strangely indented.
Copy/paste on nonstatic initializer, however produces a NPE - please see the
second attachment.
Comment 3 Svata Dedic 2001-04-06 14:17:37 UTC
Created attachment 1028 [details]
NPE thrown from IndentWriter.
Comment 4 David Konecny 2001-04-09 14:31:52 UTC
Yes, it was bug in editor's indentation engine.
(fixed in ExtFormatSupport.java 1.10.4.1)

As for strange indentation: issue 
http://www.netbeans.org/issues/show_bug.cgi?id=11210 was created for it

Comment 5 Jan Becicka 2001-05-03 10:18:54 UTC
[010502_1] Verified
Comment 6 Jan Chalupa 2001-05-05 22:05:23 UTC
Target milestone -> 3.2
Comment 7 Quality Engineering 2003-06-30 18:12:02 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.