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 134406 - "Assign Return Value To New Variable" on constructor call can't handle type arguments
Summary: "Assign Return Value To New Variable" on constructor call can't handle type a...
Status: RESOLVED DUPLICATE of bug 133825
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-02 15:22 UTC by matthies
Modified: 2008-05-05 11:59 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 matthies 2008-05-02 15:22:52 UTC
Example:

    class Test
    {
        public static void main(String[] args)
        {
            new ThreadLocal<Test>();
        }
    }

Performing "Assign Return Value To New Variable" on the constuctor invocation results in the incorrect:

            ThreadLocal<Test> threadLocal<Test> = new ThreadLocal<Test>();

The expected result would be:

            ThreadLocal<Test> threadLocal = new ThreadLocal<Test>();

Product Version: NetBeans IDE 6.1 (Build 200804211638)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 1 Jiri Prox 2008-05-05 11:59:29 UTC
yes, this is part of issue 133825

*** This issue has been marked as a duplicate of 133825 ***