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 171695 - IllegalArgumentException: TreePathHandle [C:\Projects\HAST\HastWebForm\src\java\hw\uics\hast\HastRecord.java] was not created from C:\Projects\HAST\HastWebForm\src\java\hw\uics\hast\HastRecord.java mi
Summary: IllegalArgumentException: TreePathHandle [C:\Projects\HAST\HastWebForm\src\ja...
Status: RESOLVED DUPLICATE of bug 169352
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Skrivanek
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-08 12:06 UTC by neilyboy
Modified: 2009-09-09 10:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 158040


Attachments
stacktrace (5.26 KB, text/plain)
2009-09-08 12:06 UTC, neilyboy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description neilyboy 2009-09-08 12:06:34 UTC
This issue was originally marked as duplicate of issue 143384, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related.

Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 1.6.0_01-b06, Java(TM) SE Runtime Environment, 1.6.0_01-b06
OS: Windows XP, 5.1, x86

User Comments:
neilyboy: added a string variable to a class and clicked to refector and encapsulate field.



Stacktrace: 
java.lang.IllegalArgumentException: TreePathHandle [C:\Projects\HAST\HastWebForm\src\java\hw\uics\hast\HastRecord.java] was not created from C:\Projects\HAST\HastWebForm\src\java\hw\uics\hast\HastRecord.java
mine: id=26678590, valid=true, url=file:/C:/Projects/HAST/HastWebForm/src/java/hw/uics/hast/HastRecord.java
remote: id=30083669, valid=true, url=file:/C:/Projects/HAST/HastWebForm/src/java/hw/uics/hast/HastRecord.java
        at org.netbeans.api.java.source.TreePathHandle$TreeDelegate.resolve(TreePathHandle.java:402)
        at org.netbeans.api.java.source.TreePathHandle.resolve(TreePathHandle.java:144)
        at org.netbeans.modules.refactoring.java.ui.EncapsulateFieldUI.resolveSourceType(EncapsulateFieldUI.java:141)
        at org.netbeans.modules.refactoring.java.ui.EncapsulateFieldUI.<init>(EncapsulateFieldUI.java:75)
        at org.netbeans.modules.refactoring.java.ui.JavaRefactoringActionsProvider$20.createRefactoringUI(JavaRefactoringActionsProvider.java:580)
        at org.netbeans.modules.refactoring.java.ui.RefactoringActionsProvider$TextComponentTask.run(RefactoringActionsProvider.java:727)
Comment 1 neilyboy 2009-09-08 12:06:39 UTC
Created attachment 87260 [details]
stacktrace
Comment 2 Jan Lahoda 2009-09-08 12:10:32 UTC
Two FileObjects for the same URL.
Comment 3 Jiri Skrivanek 2009-09-09 10:57:49 UTC

*** This issue has been marked as a duplicate of 169352 ***