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 - Annotation continuation not correctly formatted
Summary: Annotation continuation not correctly formatted
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-19 13:11 UTC by Michel Graciano
Modified: 2016-10-24 17:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (14.56 KB, application/zip)
2015-08-19 13:11 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
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