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 79004 - ClassDefinitonImpl: getMethod() fails to match a method added to an anonymous inner class
Summary: ClassDefinitonImpl: getMethod() fails to match a method added to an anonymous...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-23 21:43 UTC by _ sandipchitale
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample module project to demonstrate the problem. (9.13 KB, application/octet-stream)
2006-06-23 21:44 UTC, _ sandipchitale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ sandipchitale 2006-06-23 21:43:23 UTC
See the attached sample module project.

When you build and install this module, you will see two menu items under 
refactor menu. To reproduce the problem
1) Open the java file Sample.java and select the menu item "Add Method"
2) Select the menu item "Get Method".

You will see that the getMethod() fails to return the added method because of 
type name mismatch in argTypesMatch() method of ClassDefinitonImpl.java
Comment 1 _ sandipchitale 2006-06-23 21:44:21 UTC
Created attachment 31346 [details]
Sample module project to demonstrate the problem.
Comment 2 Tomas Hurka 2006-06-27 14:31:17 UTC
Fixed in trunk.
Checking in netbeans/modules/javacore/jmiimpl/javamodel/ClassDefinitionImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ClassDefinitionImpl.java,v  
<--  ClassDefinitionImpl.java
new revision: 1.26; previous revision: 1.25
done
Checking in netbeans/modules/javacore/jmiimpl/javamodel/NewClassExpressionImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/
NewClassExpressionImpl.java,v  <--  NewClassExpressionImpl.java
new revision: 1.12; previous revision: 1.11
done
Comment 3 _ sandipchitale 2006-06-27 21:34:00 UTC
Is this fixed in 55 branch? We need a fix in 55 branch.
Comment 4 Tomas Hurka 2006-06-28 22:04:36 UTC
>Is this fixed in 55 branch?
Not yet.

>We need a fix in 55 branch.
I know. 
Comment 5 Tomas Hurka 2006-06-29 14:59:40 UTC
Fix merged to release55 branch
Checking in ClassDefinitionImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ClassDefinitionImpl.java,v  
<--  ClassDefinitionImpl.java
new revision: 1.20.12.2.2.3; previous revision: 1.20.12.2.2.2
done
Checking in NewClassExpressionImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/
NewClassExpressionImpl.java,v  <--  NewClassExpressionImpl.java
new revision: 1.9.8.2.2.2; previous revision: 1.9.8.2.2.1
done
Comment 6 Quality Engineering 2007-09-20 10:32:34 UTC
Reorganization of java component