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 214459 - Rename typedef test fails
Summary: Rename typedef test fails
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: nnnnnk
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2012-06-19 16:52 UTC by vanob
Modified: 2012-06-27 11:56 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 vanob 2012-06-19 16:52:14 UTC
[ BUILD # : 201206141830 ]
[ JDK VERSION : 1.7.4 ]

Follow 
http://wiki.netbeans.org/TS_67_CNDrefactoring

5. Rename typedef

Expected result should be
typedef int NewInt;  
NewInt MyInt(NewInt MyInt){
    NewInt i = -1;
    return i*MyInt;    
} 

But in my case it's

typedef int NewInt;  
NewInt MyInt(NewInt MyInt){
    MyInt i = -1;
    return i*MyInt;    
}

And it does not compile
Comment 1 soldatov 2012-06-20 09:05:46 UTC
I think It is a bug in test scenario. Sample can't be built by GCC. NetBeans parser can't recognize original code too.
Comment 2 nnnnnk 2012-06-20 09:32:37 UTC
Yes, it's a bug in scenario.
Comment 3 Alexander Pepin 2012-06-27 11:56:30 UTC
The test spec has been updated.