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 203692 - [71cat] strange copy paste behaviour
Summary: [71cat] strange copy paste behaviour
Status: RESOLVED DUPLICATE of bug 203702
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-14 07:07 UTC by muellermi
Modified: 2011-11-16 16:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages (254.00 KB, text/plain)
2011-10-14 07:08 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2011-10-14 07:07:30 UTC
Product Version = NetBeans IDE Dev (Build 201110120600)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) Client VM 21.0-b17

I created a new class. Since I could re-use some code from an other class file, I wanted to perform a copy-paste operation [copy-paste-loose :-)]

@Entity
@Table(name = "Account", catalog="WebRequest", schema="dbo")
public class Account implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "acId")
    private Integer _accountId;

Text above is what I copied with ctrl-c into clipboard. And this is what I got after inserting:

@EntityEntity
@TableTable(name = "Account", catalog="WebRequest", schema="dbo")
public class Account implements SerializableSerializable {

    private static final long serialVersionUID = 1L;
    @IdId
    @GeneratedValueGeneratedValue(strategy = GenerationTypeGenerationType.IDENTITY)
    @ColumnColumn(name = "acId")
    private IntegerInteger _accountId;

All annotation names had been doubled and the Integer type too.
Comment 1 muellermi 2011-10-14 07:08:29 UTC
Created attachment 112038 [details]
messages
Comment 2 muellermi 2011-10-14 07:12:00 UTC
And, after retrying this copy-paste-loose opreation, everthing worked fine.
Comment 3 Miloslav Metelka 2011-11-02 14:13:59 UTC
Not sure whether this could it be related to java imports so reassigning to java/editor.
Comment 4 Jan Lahoda 2011-11-02 16:29:36 UTC
Sounds like a duplicate of bug #203702 - already fixed, so please upgrade if possible. thanks for the report anyway.

*** This bug has been marked as a duplicate of bug 203702 ***