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 221398 - Abbreviation '2ar' creates code with "redunant cast" warning
Summary: Abbreviation '2ar' creates code with "redunant cast" warning
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-03 00:16 UTC by markiewb
Modified: 2012-11-06 03:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
generated code with warning (9.34 KB, image/png)
2012-11-03 00:17 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2012-11-03 00:16:32 UTC
[ BUILD # : 201210310001 ]
[ JDK VERSION : 1.6.37 ]

Abbreviation '2ar' creates code with "redunant cast" warning. See 
screenshot.

Reproduction
<code>
public class NewClass {

    private void openProjects (List<Project> projects) {
        
        // type "2ar", TAB, Project, RETURN
    }
}
</code>

Type "2ar", TAB, "Project", RETURN

ACTUAL: generated code with redundant cast warning
EXPECTED: generated code without redundant cast warning
Comment 1 markiewb 2012-11-03 00:17:02 UTC
Created attachment 127053 [details]
generated code with warning
Comment 2 Dusan Balek 2012-11-05 18:02:49 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/4d22dae3af64
Comment 3 Quality Engineering 2012-11-06 03:11:34 UTC
Integrated into 'main-golden', will be available in build *201211060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4d22dae3af64
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #221398: Abbreviation '2ar' creates code with "redunant cast" warning - fixed.