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 132881 - Newlines inserted before moved annotation
Summary: Newlines inserted before moved annotation
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-15 13:58 UTC by Andrei Badea
Modified: 2009-11-02 10:59 UTC (History)
0 users

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 Andrei Badea 2008-04-15 13:58:49 UTC
[ 6.1 RC1 ]

Create a Java Application project, add the TopLink Essentials library. Create a new class Foo and paste the following
into it:

@Entity
public class Foo implements Serializable {

    @Id
    private int id;
    private String name;

    public String getName() {
        return name;
    }
}

Save the file. Add a @Column annotation to the getName() method. Invoke the 'Unify field access' hint on the 'public
class Foo' line. The @Column annotation is moved to the name field, but two newlines are added before it.
Comment 1 Jan Becicka 2008-11-12 13:42:18 UTC
Later
Comment 2 Quality Engineering 2009-11-02 10:59:34 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX