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 127877 - Introduce Method documents exceptions too many times
Summary: Introduce Method documents exceptions too many times
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-20 14:28 UTC by _ gtzabari
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 _ gtzabari 2008-02-20 14:28:26 UTC
dev build 200802150006

If you refactor code that throws the same exception twice "introduce method" will generate a "throws" statement and
Javadoc for that same exception twice.
Comment 1 Daniel Prusa 2008-02-20 15:01:12 UTC
Can you copy a piece of code for reproduction, please? I was not able to reproduce it using a simple test case.
Comment 2 _ gtzabari 2008-02-20 15:35:35 UTC
I have a testcase on my end that can reproduce the problem 100% of the time. Unfortunately, it is part of a huge
surrounding file and whenever I try to simplify it the bug goes away.

Is it possible for me to enable extra logs, run my complex testcase and send you those logs instead? I still haven't
figured out what is triggering this bug in one scenario but not in another.
Comment 3 Daniel Prusa 2008-02-21 09:03:03 UTC
Ok, thanks, if I would find that some extra logs could help, I will add them.
Since the problem occurs in special cases only, I think it is P4.
Comment 4 Jiri Prox 2008-04-11 01:47:37 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 5 Jan Becicka 2010-10-19 12:00:33 UTC
Implemented in hints module
Comment 6 Martin Balin 2016-07-07 07:17:07 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