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.
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
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.
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?
I see now. Thanks for prompt reply. Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/9d0418eb63da
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.