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 73957 - Add Override transformation issues
Summary: Add Override transformation issues
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Jackpot (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: _ tball
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-24 13:37 UTC by _ alexlamsl
Modified: 2006-03-27 01:43 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 _ alexlamsl 2006-03-24 13:37:22 UTC
Firstly, it adds @Override to hiding (but overriding) static methods, which is 
wrong; I remember that getting fixed in Mustang, so in fact it will cause 
compiler errors.

Secondly, if the declaration already has @SuppressWarnings("unchecked"), say, 
then adding @Override makes the result looks like:

@SuppressWarnings
@Override("unchecked")

which isn't correct either.
Comment 1 _ tball 2006-03-27 01:43:19 UTC
The first problem does in fact show up as an error in Jackpot, since it uses the
Mustang compiler.  However, the static flag is now checked regardless, because
currently Jackpot allows errors.

The second problem was due to javac's parser not reporting the end positions of
annotations with parentheses correctly.  The problem has been reported along
with a patch which is now in Jackpot's parser.