Community
Participate
Working Groups
see bug# 53958 for more details
Bug 52574 is fixed. Do you have more details? A stack trace?
Sorry about the typo: I should have said "bug 52474 is fixed".
I just checked the code and I couldn't find where JavaProject implements hasChildren().
The optimization is done in JavaElement.
Please reopen if you have a test case that is not handled.
got it - this is even better
well it almost too good <g> now when I create a new source folder in the package explorer then the source folder is shown with a plus. Therefore the hasChildren() implementation needs to be more specific. It should only be used for potentially expensive model operations.
Erich a package fragment root always has the default package as a child.
Also, remember that in general a package fragment root opening may be expensive as it needs to seek all folders below it, to compute package fragments (doing validation checks for package names). When mapping to a JAR, you need to read the JAR as well... so quite a bit expensive. As Jerome said, there is nothing we can do, since the default package always exists... it is only a UI decision to hide it if empty. Closing
agreed on closing - the culprit is a UI filter - verified that this is the same behaviour as in 2.1.*