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 254511

Summary: Annotation continuation not correctly formatted
Product: java Reporter: Michel Graciano <hmichel>
Component: SourceAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: erit01, sdedic
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Sample project

Description Michel Graciano 2015-08-19 13:11:11 UTC
Created attachment 155453 [details]
Sample project

Desired behaviour (actually it is what I get when editing, before formatting):
@NamedQueries({
    @NamedQuery(name = "Entity.someQuery",
            query = "SELECT e" +
                    "  FROM Entity e" +
                    " WHERE e.relantionship.id = :relantionshipId")
})

After formatting:
@NamedQueries({
    @NamedQuery(name = "Entity.someQuery",
            query = "SELECT e" +
            "  FROM Entity e" +
            " WHERE e.relantionship.id = :relantionshipId")
})

Looks like the strings are not considered as continuation. I am attaching a sample project with all my configurations. I don't know if this behaviour is what is expected or not, but it looks odd to me.

Product Version: NetBeans IDE 8.0.2 (Build 201408251540)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Linux version 3.4.63-2.44-desktop running on amd64; UTF-8; en_US (nb)

Product Version: NetBeans IDE Dev (Build 20150818-602910034ac6)
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Linux version 3.4.63-2.44-desktop running on amd64; UTF-8; en_US (nb)
Comment 1 Svata Dedic 2015-09-22 11:33:34 UTC
Formatter resides in java.source.base; reassinging