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 197584 - "Cast ... to Object[]" hint gives bad code
Summary: "Cast ... to Object[]" hint gives bad code
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 198740 198861 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-08 23:41 UTC by err
Modified: 2011-05-30 08:13 UTC (History)
2 users (show)

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 err 2011-04-08 23:41:59 UTC
the following
    Object o[] = stuff;
has the hint
    Cast ...stuff to Object[]
executing the hint give
    Object o[] = (Object o[])stuff;
                         ^

Product Version: NetBeans Platform 7.0 RC2 (Build 201104070802)
Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09
System: Windows XP version 5.1 running on x86; Cp1252; en_US (test)
Userdir: C:\Documents and Settings\erra\.netbeans\7.0rc2
Comment 1 Jan Lahoda 2011-05-22 17:47:31 UTC
*** Bug 198740 has been marked as a duplicate of this bug. ***
Comment 2 Quality Engineering 2011-05-23 08:51:49 UTC
Integrated into 'main-golden', will be available in build *201105230400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/aee7a550619a
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #197584: C-like array are cannot be copied as old trees
Comment 3 Jan Lahoda 2011-05-23 09:10:24 UTC
Transplanted to release701:
http://hg.netbeans.org/releases/rev/870ebfc19dd7
Comment 4 Jan Lahoda 2011-05-30 08:13:44 UTC
*** Bug 198861 has been marked as a duplicate of this bug. ***