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

Summary: Rename typedef test fails
Product: cnd Reporter: vanob <vanob>
Component: -- Other --Assignee: nnnnnk <nnnnnk>
Status: RESOLVED INVALID    
Severity: normal Keywords: REGRESSION
Priority: P2    
Version: 7.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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.