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.
Summary: | API review of UnitTestForSourceQuery changes | ||
---|---|---|---|
Product: | java | Reporter: | Tomas Zezula <tzezula> |
Component: | Classpath | Assignee: | apireviews <apireviews> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | apireviews |
Priority: | P3 | Keywords: | API_REVIEW_FAST |
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | TASK | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 46354 |
Description
Tomas Zezula
2004-11-15 15:35:58 UTC
Althrough there is probably a small chance that the change is not fully backward compatible, the case that exhibits it is pretty obscure (register your UnitTestForSourceQueryImplementation into Lookup.getDefault() and remove the default one that delegates to active project won't work anymore as there will be new MultipleRootsUnitTestForSourceQueryImplementation and it will delegate to project before your own UTFSQI gets called). As this is not important at all, I agree with the change. Thanks. Note that the presence of the default (project-delegating) UTFSQI/MRUTFSQI is mentioned in Javadoc only in a nonnormative section, and the class name (needed for masking) is not mentioned at all, so anyone trying to do such masking would be stepping outside the bounds of the guaranteed API anyway. So I don't consider breaking that scenario to be a problem; such a user would simply need to switch the mask to the new project-delegating MRUTFSQI. |