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 38973 - Generate tag handlers does not honor "newline before brace" formatting
Summary: Generate tag handlers does not honor "newline before brace" formatting
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-19 06:26 UTC by rsk
Modified: 2010-01-12 02:06 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 rsk 2004-01-19 06:26:30 UTC
I filed a bug about the "General Tag Handlers"
functionality going into an infinate cycle when
the code formatter had the option "Enter newline
before brace". Now it seems this bug is fixed and
closed, but the generated tag handlers do not
honor the format setting. So I'm wondering if the
fix to the previous bug, was to simply not ever
enter a newline before brace when generating tag
handlers (maybe a quick workaround was put in place?)

Anyway this is reported against the January 18th
nightly build.
Comment 1 Milan Kuchtiak 2004-01-19 14:30:39 UTC
Yes I noticed that, but I don't consider this as P2 bug.
The simple workaround is to preformat the source.
The previous bug was fixed as I know.
This bug shouldn't cause any serious problems.
Comment 2 rsk 2004-01-19 14:44:58 UTC
Would it be reasonable to set this as a 3.6 target?
Comment 3 Milan Kuchtiak 2004-01-19 15:47:53 UTC
Yes, I am doing that.
Comment 4 rsk 2004-01-19 17:14:17 UTC
Thank you
Comment 5 robertgregor 2004-02-06 10:56:48 UTC
Not easy to fix. Set target milestone to promo D.
Comment 6 Milan Kuchtiak 2004-08-05 15:24:22 UTC
The issue still exists in 4.0 dev, but not in such an extent.
The generated tag handler is formatted well except of setter methods
corresponding to tag attributes (at the end of tag handler). I am
downgrading this issue to P5 as this doesn't cause any problems.

The tag handler generation (in wizard) is the one-way process now.
User can format the tag handler after it is generated, than nothing
will change the formatting back (as it happened in 3.6 when Generate
Tag Handler action was invoked repeatedly).
Comment 7 rsk 2004-08-05 17:30:50 UTC
As a workaround why not just generate the file, then in the background
run the formatter on the file and call it a day?
Comment 8 rsk 2006-02-02 05:28:44 UTC
Closing, this is no longer of interest.