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 202596 - IllegalArgumentException: MasterFileObject[/home/alexis/Proyectos/JAVA/trunk/finance-manager/src/main/java@1a13e:e6a6eb,valid=false] [isValid=false] is not parent of MasterFileObject[/home/alexis/Proy
Summary: IllegalArgumentException: MasterFileObject[/home/alexis/Proyectos/JAVA/trunk/...
Status: RESOLVED DUPLICATE of bug 204271
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.0
Hardware: All All
: P4 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-23 22:26 UTC by chepanemo
Modified: 2011-11-14 19:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 181362


Attachments
stacktrace (2.77 KB, text/plain)
2011-09-23 22:26 UTC, chepanemo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chepanemo 2011-09-23 22:26:00 UTC
Build: NetBeans IDE 7.0.1 (Build 201109041500)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Linux

Stacktrace: 
java.lang.IllegalArgumentException: MasterFileObject[/home/alexis/Proyectos/JAVA/trunk/finance-manager/src/main/java@1a13e:e6a6eb,valid=false] [isValid=false] is not parent of MasterFileObject[/home/alexis/Proyectos/JAVA/trunk/finance-manager/src/main/java/net/stsmedia/financemanager/security@40b2a:104ca99,valid=true] [isValid=true].
   at org.netbeans.spi.project.support.GenericSources$Group.contains(GenericSources.java:163)
   at org.netbeans.spi.java.project.support.ui.PackageView.findNonExcludedPackages(PackageView.java:195)
   at org.netbeans.spi.java.project.support.ui.PackageView.findNonExcludedPackages(PackageView.java:221)
   at org.netbeans.spi.java.project.support.ui.PackageView.findNonExcludedPackages(PackageView.java:221)
   at org.netbeans.spi.java.project.support.ui.PackageView.findNonExcludedPackages(PackageView.java:221)
   at org.netbeans.spi.java.project.support.ui.PackageView.findNonExcludedPackages(PackageView.java:163)
Comment 1 chepanemo 2011-09-23 22:26:03 UTC
Created attachment 111124 [details]
stacktrace
Comment 2 Jesse Glick 2011-09-24 00:22:07 UTC
A duplicate, I think...
Comment 3 Jaroslav Tulach 2011-10-12 11:48:15 UTC
I am not that surprised a non-valid fileobject is not parent of anything. Can GenericSources$Group owner explain why it checks for containment inside of invalid file object? Maybe the whole assert is flawed. When files are being deleted, it may happen that parent is already invalidated and children are not yet. There is no guarantee of atomicity.
Comment 4 Jesse Glick 2011-11-14 19:35:26 UTC

*** This bug has been marked as a duplicate of bug 204271 ***