Community
Participate
Working Groups
HEAD Bug 195361 revealed that the Javadoc of ICompilationUnit.getOwner() does not explain that "no owner" means the primary owner. Furthermore, I think the explanation of working copies in the Javadoc of IWorkingCopy should be copied to ICompilationUnit. This is still valuable information, but is easy to miss since IWorkingCopy is deprecated.
This would indeed be helpful. Just fyi, when fixing bug 195361 I was also wondering if it would make more sense to never have it null and in stead to have a static/singleton/immutable working copy that always answered true to isPrimary() since that would make the API and client code more explicit. But I assume that this would be too big a change.
> ... Javadoc of ICompilationUnit.getOwner() does not > explain that "no owner" means the primary owner. This has been fixed with bug 293711. > Furthermore, I think the explanation of working copies in the Javadoc of > IWorkingCopy should be copied to ICompilationUnit. This is still valuable > information, but is easy to miss since IWorkingCopy is deprecated. Still holds.