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 26754 - Implement some replacement for ClassElement.forName.
Summary: Implement some replacement for ClassElement.forName.
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: Tomas Hurka
Keywords: API
Depends on:
Blocks: 26753 27481 27637 28450
  Show dependency tree
Reported: 2002-08-23 17:46 UTC by Jan Jancura
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jan Jancura 2002-08-23 17:46:04 UTC
Implement some replacement for ClassElement.forName.
Comment 1 Svata Dedic 2002-10-16 11:25:19 UTC
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.
Comment 2 Svata Dedic 2002-10-18 13:09:18 UTC
Partial fix done. ClassElement.forName() will find sources, but may
not be able to resolve references to full names.
Reassigning to Tomas; good luck!
Comment 3 Tomas Hurka 2002-11-11 13:54:45 UTC
Done in prj40_prototype branch.

There are two new methods
org.openide.src.ClassElement.forName( project, 
        String name)
org.openide.src.ClassElement.forName(  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
Comment 4 Jan Becicka 2003-11-25 14:04:40 UTC
As described in the
current work on projects prototype has been stopped.

Marking issue as VERIFIED --->
Comment 5 Jan Becicka 2003-11-25 14:13:47 UTC