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 31557 - <makeparserdb> is broken
Summary: <makeparserdb> is broken
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-28 02:04 UTC by Jesse Glick
Modified: 2007-11-05 13:44 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2003-02-28 02:04:13 UTC
Not sure what is wrong, but as of today <makenbm>
does not work. It reports no errors or anything,
but the generated files (both .jcb and .jcs) are
bogus: only 4 bytes:

0x00000002

At first I thought it was my patch to
MakeParserDB.java (fooling with class loaders a
bit to make the task work better inside NB), which
I reverted as soon as I found out about the
problem. But it is still broken after reverting
that patch, and I just found out is was broken for
a while before. Seems to have broken sometime
around Feb 12 to Feb 13, according to some of my
dev builds from that time period.

Since the problem is probably in editor, I am
reapplying my patch to MakeParserDB.java, together
with the removal of *-deprecated.jar from the
classpath, since these should no longer be needed.
Comment 1 Martin Roskanin 2003-02-28 12:49:56 UTC
This is broken since removal of dependency on openide deprecated APIs
from editor module. It's my fault, I didn't notice [pending] during
commit.

org.netbeans.modules.editor.java.StandaloneJCDBCreator started the IDE
in nonGUI mode via TopManager.getDefault();
Is there any proper replacement for this, I mean run the IDE in nonGUI? 
I have tried to use reflection, but another problem arised.
DataObject.getCookie(SourceCookie.class) returns null in parseFolder
method although  the DO
is source file.
Comment 2 Jesse Glick 2003-02-28 15:50:12 UTC
Re. TM.gD: RTFM:

http://www.netbeans.org/download/dev/javadoc/DeprecatedAPIs/org/openide/TopManager.html#getDefault()

Re. getCookie(SourceCookie) - no idea, you will have to investigate
somehow I guess.
Comment 3 Martin Roskanin 2003-03-03 13:32:10 UTC
fixed in [maintrunk] and [release35]

/cvs/editor/src/org/netbeans/modules/editor/java/StandaloneJCDBCreator.java,v
 <--  StandaloneJCDBCreator.java
new revision: 1.6; previous revision: 1.5

/cvs/editor/src/org/netbeans/modules/editor/java/StandaloneJCDBCreator.java,v
 <--  StandaloneJCDBCreator.java
new revision: 1.5.2.1; previous revision: 1.5
Comment 4 Jesse Glick 2003-03-03 20:08:31 UTC
Looks better in dev sources, thanks.