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 221752 - [73cat] Pasting an expression over a String is broken
Summary: [73cat] Pasting an expression over a String is broken
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-08 17:31 UTC by misterm
Modified: 2012-11-13 02:43 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 misterm 2012-11-08 17:31:34 UTC
I have a String in a method call like:

"Some string"

I selected the whole thing, since I wanted to paste:

Class.someMethod(
"Value", "Values", beans)

that I copied from another source file from the editor. It had this enter there due to formatting in the other file. The IDE pasted:

Class.someMethod(
\n" +
"				\"Value\", \"Values\", beans)

Product Version = NetBeans IDE Dev (Build 20121108-dd70d6fce533)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_01
Runtime = Java HotSpot(TM) 64-Bit Server VM 21.1-b02
Comment 1 Dusan Balek 2012-11-12 10:09:44 UTC
Unfortunately, I'm not sure what particular problem you are complaining about. Please note, that escaping of '\n' and '"' characters is as designed when pasted into a string literal (see http://netbeans.org/bugzilla/show_bug.cgi?id=201130).

Could you please create a simple step-by-step scenario and describe the problem in more details? Thanks.
Comment 2 misterm 2012-11-12 10:12:15 UTC
Hi Dusan,

I don't think I've made myself clear. I am not pasting *in* a String, I am pasting *over* it, i.e., overwritting it. I am completely replacing "Some string" by the regular method call I mentioned before.

Is it clear now?
Comment 3 Dusan Balek 2012-11-12 10:42:47 UTC
I see now. Thanks for prompt reply.

Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/9d0418eb63da
Comment 4 Quality Engineering 2012-11-13 02:43:09 UTC
Integrated into 'main-golden', will be available in build *201211130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9d0418eb63da
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #221752: Pasting an expression over a String is broken - fixed.