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.
Implement some replacement for ClassElement.forName.
I will try to hack in a heuristic implementation of CE.forName() shortly and deprecate the method. Tomas will invent a new one, with proper behaviour w.r.t. Projects.
Partial fix done. ClassElement.forName() will find sources, but may not be able to resolve references to full names. Reassigning to Tomas; good luck!
Done in prj40_prototype branch. There are two new methods org.openide.src.ClassElement.forName( org.netbeans.api.java.project.JavaProject project, String name) and org.openide.src.ClassElement.forName( org.netbeans.api.java.project.JavaProject project, Class name) These two new methods replace ClassElement.forName(String name) and ClassElement.forName(Class clazz). The old forName() methods without project context are deprecated and should not be used. See issue #27481 for other important changes in Java module
As described in http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the current work on projects prototype has been stopped. Marking issue as VERIFIED --->
---> CLOSED