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.
This bug was originally marked as duplicate of bug 182069, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 6.9 Beta (Build 201004200117) VM: Java HotSpot(TM) 64-Bit Server VM, 16.2-b04, Java(TM) SE Runtime Environment, 1.6.0_19-b04 OS: Linux User Comments: yardus: fix imports Stacktrace: java.lang.IllegalArgumentException: TreePathHandle [/home/jb198685/projects/btrace/src/share/classes/com/sun/btrace/agent/TraceOutputWriter.java] was not created from /home/jb198685/projects/btrace/src/share/classes/com/sun/btrace/agent/TraceOutputWriter.java mine: id=MasterFileObject[/home/jb198685/projects/btrace/src/share/classes/com/sun/btrace/agent/TraceOutputWriter.java@45081d1e:2a595ca4,valid=true], url=file:/home/jb198685/projects/btrace/src/share/classes/com/sun/btrace/agent/TraceOutputWriter.java remote: id=MasterFileObject[/home/jb198685/projects/btrace/src/share/classes/com/sun/btrace/agent/TraceOutputWriter.java@45081d1e:3491a198,valid=true], url=file:/home/jb198685/projects/btrace/src/share/classes/com/sun/btrace/agent/TraceOutputWriter.java at org.netbeans.api.java.source.TreePathHandle$TreeDelegate.resolve(TreePathHandle.java:421) at org.netbeans.api.java.source.TreePathHandle.resolve(TreePathHandle.java:151) at org.netbeans.modules.java.editor.imports.JavaFixAllImports.performFixImports(JavaFixAllImports.java:262) at org.netbeans.modules.java.editor.imports.JavaFixAllImports.access$200(JavaFixAllImports.java:94) at org.netbeans.modules.java.editor.imports.JavaFixAllImports$1.run(JavaFixAllImports.java:135) at org.netbeans.modules.java.editor.imports.JavaFixAllImports$1.run(JavaFixAllImports.java:112)
Created attachment 97927 [details] stacktrace
Seems like a duplicate FileObjects.
mine: id=MasterFileObject[/home/jb198685/projects/btrace/src/share/classes/com/sun/btrace/agent/TraceOutputWriter.java@45081d1e:2a595ca4,valid=true], remote: id=MasterFileObject[/home/jb198685/projects/btrace/src/share/classes/com/sun/btrace/agent/TraceOutputWriter.java@45081d1e:3491a198,valid=true], The above means the FileNaming is the same (45081d1e), but the fileobject is different (2a595ca4 vs. 3491a198)
One problem found and fixed in core-main#8e3c013acd4d
Integrated into 'main-golden', will be available in build *201004280200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ User: Log:
The masterfs shall be rewritten to use immutable FileName objects. I have the rewrite at immutable-file-name-184854 branch, but I guess I rather wait with the change after 6.9: http://hg.netbeans.org/core-main/rev/f42b5263e367
*** Bug 185371 has been marked as a duplicate of this bug. ***
*** Bug 186130 has been marked as a duplicate of this bug. ***
*** Bug 186185 has been marked as a duplicate of this bug. ***
*** Bug 186430 has been marked as a duplicate of this bug. ***
*** Bug 186254 has been marked as a duplicate of this bug. ***
Making P2. Many duplicates, rename not working reliably.
Depending issue is P1.
*** Bug 186740 has been marked as a duplicate of this bug. ***
(In reply to comment #4) > core-main#8e3c013acd4d BTW: Utilities.compareObjects makes this kind of equals override more readable. (In reply to comment #6) > immutable-file-name-184854 branch I.e.: hg log -b immutable-file-name-184854 -pv I don't really know this code but I do not see any obvious problems with the changes. Overall it is another example of the troubles caused by our object-oriented Filesystems design: we are forced to commit to there being exactly one Object per existing file, which is a difficult invariant to maintain.
- field fileName in BaseFileObj.java should be properly synchronized - field id in FileName.java should be final - method getId(boolean recompute) in FileName.java doesn't need parameter recompute BTW: exactly one Object per existing file - is really design that affects complexity and performance
*** Bug 187030 has been marked as a duplicate of this bug. ***
*** Bug 187255 has been marked as a duplicate of this bug. ***
*** Bug 187170 has been marked as a duplicate of this bug. ***
*** Bug 187294 has been marked as a duplicate of this bug. ***
I have a solution for the problem at #8 in http://deadlock.netbeans.org/hudson/job/prototypes-immutable-file-name-184854/ If anyone can verify the build is sane, please do so before I merge to trunk (Monday Jun 14, 2010 would be me preferred date). Thanks.
To review the current code, please look at: http://hg.netbeans.org/core-main/rev/b2380dd52af9
*** Bug 187362 has been marked as a duplicate of this bug. ***
core-main#3c7f40a1c126
*** Bug 186655 has been marked as a duplicate of this bug. ***
we need this fix in 6.9.1 (as was marked in issue #186655)
To backport to 6.9.1, make sure all fixes on immutable-file-name-184854 branch are merged to the right clone.
@Jarda: is this the issue you wanted me to check?
Please verify bugfix for this bug, so it can be included in release691 repository. Thanks, -R
verified
(In reply to comment #27) > To backport to 6.9.1, make sure all fixes on immutable-file-name-184854 branch > are merged to the right clone. I would welcome, if you could be more specific about this requirement. Would you please specify either a list of changesets or a method how to prepare the list myself? Thanks, -R
(In reply to comment #31) > Would you please specify either a list of changesets or a method how to prepare > the list myself? hg log -b immutable-file-name-184854
(In reply to comment #32) > hg log -b immutable-file-name-184854 And perhaps without merges (-M).
rudolf@lupin:~/work/nb691/main>$ hg log -b immutable-file-name-184854 -M | grep "^changeset:" | cut -f2- -d : | sort 172937: main #177a6e8bb5cc 172938: main #17a2161e8f81 172939: main #f42b5263e367 172940: main #377215133c3e 172941: main #7402e67b87a7 172942: main #c3404913a291 172943: main #b0f5f538c72b 172944: main #3c7f40a1c126 173037: main #6cb009217b97 rudolf@lupin:~/work/nb691/main>$ hg log -b immutable-file-name-184854 -M | grep "^changeset:" | cut -f2- -d : | sort | cut -f2 -d : | (cd ../release691; while read line; do hg transplant -s ../main ${line}; done; cd - ) searching for changes applying main #177a6e8bb5cc main #177a6e8bb5cc transplanted to release691 #d0a72bc269a1 searching for changes applying main #17a2161e8f81 main #17a2161e8f81 transplanted to release691 #081955e4ca40 searching for changes applying main #f42b5263e367 main #f42b5263e367 transplanted to release691 #645885d31832 searching for changes applying main #377215133c3e main #377215133c3e transplanted to release691 #b148a85fe8d5 searching for changes applying main #7402e67b87a7 main #7402e67b87a7 transplanted to release691 #ee8980ffa72e searching for changes applying main #c3404913a291 main #c3404913a291 transplanted to release691 #5bad431d3938 searching for changes applying main #b0f5f538c72b main #b0f5f538c72b transplanted to release691 #bf8ec9b86595 searching for changes applying main #3c7f40a1c126 main #3c7f40a1c126 transplanted to release691 #a0b5e4478078 searching for changes applying main #6cb009217b97 main #6cb009217b97 transplanted to release691 #a7d85d51ac37 /Users/rudolf/work/nb691/main rudolf@lupin:~/work/nb691/main>$
BTW can http://deadlock.netbeans.org/hudson/job/prototypes-immutable-file-name-184854/ be deleted now? (In reply to comment #34) > hg log -b immutable-file-name-184854 -M | grep "^changeset:" | cut -f2- -d : | sort | cut -f2 -d : More easily: hg log -b immutable-file-name-184854 -M --template '{node}\n' -r null:tip It might also have sufficed to export and then import 1352aa1ebbfb, since that seems to have been the final merge to trunk (but I'm not sure if there were multiple such merges).
#1 - prototypes-immutable-file-name-184854 job deleted #2 - to backport to release69x just: hg pull -r immutable-file-name-184854 http://hg.netbeans.org/main-golden/ #3 - don't backport it yet, I still have some test failures on windows
(In reply to comment #36) > #3 - don't backport it yet, I still have some test failures on windows Way too late, isn't it? Please double integrate also into release691. Blame verifier for premature verification ... ;-( Thanks, -R
*** Bug 187765 has been marked as a duplicate of this bug. ***
Please backport additional fixes on the immutable-file-name-184854 branch. Current head is http://hg.netbeans.org/core-main/rev/b5338affae8c
main #b5338affae8c transplanted to release691 #3348665d4294
*** Bug 187835 has been marked as a duplicate of this bug. ***
*** Bug 187724 has been marked as a duplicate of this bug. ***
*** Bug 188334 has been marked as a duplicate of this bug. ***
*** Bug 188709 has been marked as a duplicate of this bug. ***
*** Bug 188680 has been marked as a duplicate of this bug. ***
*** Bug 188772 has been marked as a duplicate of this bug. ***
*** Bug 188827 has been marked as a duplicate of this bug. ***
*** Bug 189177 has been marked as a duplicate of this bug. ***
*** Bug 189885 has been marked as a duplicate of this bug. ***
reproduced in Product Version: NetBeans IDE Dev (Build 101020-7d51775f8647) Java: 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279 however, it's not p1 anymore reproducible while downloading files using ftp. see exception reports.
I have reported bug 184854 for PHP. Please report all issues related to PHP into that bug. Leave this bug for other reports unrelated to PHP FTP support.
*** Bug 195116 has been marked as a duplicate of this bug. ***
*** Bug 195119 has been marked as a duplicate of this bug. ***
*** Bug 195333 has been marked as a duplicate of this bug. ***
*** Bug 195427 has been marked as a duplicate of this bug. ***
*** Bug 195656 has been marked as a duplicate of this bug. ***