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 211037 - GeneratorUtilities.appendToAnnotationValue should insert before @Override
Summary: GeneratorUtilities.appendToAnnotationValue should insert before @Override
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.2
Hardware: All All
: P4 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks: 104757 208570
  Show dependency tree
 
Reported: 2012-04-11 17:45 UTC by Jesse Glick
Modified: 2016-07-07 07:17 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 Jesse Glick 2012-04-11 17:45:41 UTC
672210bc7863 regressed the formatting fix in c607e18cf2da. When starting with

    @Override public void run() {
        ...
    }

and call GU.aTAV, you would want the result to be

    @SomeNewAnnotation(...)
    @Override public void run() {
        ...
    }

but you currently get

    @Override@SomeNewAnnotation(...)
public void run() {
        ...
    }

which obviously looks terrible and needs to be fixed up by the user manually.

I can supply a patch with test if you agree - either to insert a new annotation at the front unconditionally, or to insert before @Override if present.
Comment 1 Martin Balin 2016-07-07 07:17:28 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss