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 192789 - nested annotation is formatted in one line
Summary: nested annotation is formatted in one line
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.0
Hardware: All Other
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2010-12-02 11:32 UTC by Sergey Petrov
Modified: 2010-12-07 06:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test. (1.54 KB, text/x-java-source)
2010-12-03 11:52 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2010-12-02 11:32:11 UTC
it's a regression after November 23 (can't say specific date).
it's a regression for fix of issue 124102
priority is the same as for original issue.
http://bertram.netbeans.org/hudson/job/javaee have 3 test fails due this regression

to reproduce:
create web project on gf3.x
geerate Customer entity from db,
see NamedQueries annotation, compare with much better frmatting in 6.9.1
Comment 1 Jan Lahoda 2010-12-03 11:52:05 UTC
Created attachment 103572 [details]
Test.
Comment 2 Jan Lahoda 2010-12-03 11:56:22 UTC
A regression in formatter, IMO, caused by:
http://hg.netbeans.org/jet-main/rev/63b94e1ca42e

The code generator asks the reformatter to reformat each annotation separatelly, in which case the wrapping does not work after the above commit (as far as I can tell). To reproduce manually:
-create a J2SE project
-add "Persistence" library to the project's dependencies
-download the attached JavaApplication8.java file, place it into the project
-try to reformat the source code - the @NamedQueries will not be wrapped
-uncomment the @SuppressWarnings annotation - the @NamedQueries will be wrapped
Comment 3 Dusan Balek 2010-12-06 16:18:44 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/82f1ecef07fe
Comment 4 Quality Engineering 2010-12-07 06:13:35 UTC
Integrated into 'main-golden', will be available in build *201012070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/82f1ecef07fe
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #192789: nested annotation is formatted in one line - fixed.