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 140013 - NullPointerException at org.netbeans.modules.refactoring.java.RetoucheUtils.getOverridingMethods
Summary: NullPointerException at org.netbeans.modules.refactoring.java.RetoucheUtils.g...
Status: VERIFIED DUPLICATE of bug 120577
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-15 09:49 UTC by Petr Dvorak
Modified: 2008-07-15 22:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 19895


Attachments
stacktrace (1.05 KB, text/plain)
2008-07-15 09:49 UTC, Petr Dvorak
Details
Userdir where the exception occured, created using normal work... (5.51 MB, text/plain)
2008-07-15 09:59 UTC, Petr Dvorak
Details
.... Sorry, I didn't set the correct mime-type before... (5.51 MB, application/octet-stream)
2008-07-15 10:01 UTC, Petr Dvorak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Dvorak 2008-07-15 09:49:04 UTC
Build: NetBeans IDE Dev (Build 200807101204)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Linux, 2.6.24-19-generic, i386

User Comments: 
I invoked "Change method parameters" inside the protected constructor with no parameters - inside of the brackets of: protected Bean(/*CARET WAS HERE*/) {/**/}
Comment 1 Petr Dvorak 2008-07-15 09:49:10 UTC
Created attachment 64515 [details]
stacktrace
Comment 2 Petr Dvorak 2008-07-15 09:57:32 UTC
To reproduce the issue:

Download a sample project called "Default" from http://wiki.netbeans.org/TS_60_Refactoring, extract it to
/home/tester/Desktop (required due to userdir) and try to invoke Change Method Parameters for the constructor of Bean
class (Bean.java)... Start IDE with a userdir I will send you...
Comment 3 Petr Dvorak 2008-07-15 09:59:13 UTC
Created attachment 64516 [details]
Userdir where the exception occured, created using normal work...
Comment 4 Petr Dvorak 2008-07-15 10:01:55 UTC
Created attachment 64520 [details]
.... Sorry, I didn't set the correct mime-type before...
Comment 5 Jan Pokorsky 2008-07-15 15:14:03 UTC
There is a class/filename name typo
 class: org.netbeans.tests.examples.packb.BeanD
 file: /home/tester/Desktop/default/src/org/netbeans/tests/examples/packb/BeansD.java
according to messages.log from your userdir.

Anyway it appears to be another case of issue 120577.

*** This issue has been marked as a duplicate of 120577 ***
Comment 6 Petr Dvorak 2008-07-15 17:40:44 UTC
Hi!

No, there is NOT a typo in the description!

The class name is Bean (no letters appended), file is bean.java.... This class file is located under "Source Packages >
org.netbeans.tests.examples" in the project "default" (http://wiki.netbeans.org/TS_60_Refactoring).

Just place the caret between brackets of the constructor of Bean class and invoke Change Method Parameters...

(Possibly an IDE log shows something about BeanD... I don't know...)

(Is this issue really duplicate? That one speaks about rename (Ctrl+R).)
Comment 7 Jan Pokorsky 2008-07-15 19:23:50 UTC
There is a name inconsistence according to your messages.log as I wrote before. The log shows the situation from javac
perspective. Javac cannot resolve the ElementHandle. The reason of both issues seems to be the same, type element/file
name. Therefore it is a duplicate.
Comment 8 Petr Dvorak 2008-07-15 22:45:44 UTC
OK, I see - VERIFIED (just - to reproduce the issue, do it with the Bean class:), not BeanD class - I do not make anz
tzpos;))...