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 8465 - ClassCastException when updating CVS in alias modules
Summary: ClassCastException when updating CVS in alias modules
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscvs (show other bugs)
Version: -FFJ-
Hardware: All Windows ME/2000
: P4 normal (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-19 01:23 UTC by Andy Boyko
Modified: 2003-07-02 17:19 UTC (History)
0 users

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 Andy Boyko 2000-11-19 01:23:03 UTC
When opening a CVS filesystem in the Filesystems view and answering "Yes" to
the question "Download contents of CVS recursively?", I receive the following
exception:

Sat Nov 18 20:19:12 EST 2000java.lang.ClassCastException: java.lang.Boolean
java.lang.ClassCastException: java.lang.Boolean
	at
org.netbeans.modules.vcs.cmdline.commands.CvsModuleParser.resolveModuleLinks
(CvsModuleParser.java:199)
	at
org.netbeans.modules.vcs.cmdline.list.CvsListRecursiveCommand.addModuleDefs
(CvsListRecursiveCommand.java:171)
	at
org.netbeans.modules.vcs.cmdline.list.CvsListRecursiveCommand.getModulesPaths
(CvsListRecursiveCommand.java:219)
	at
org.netbeans.modules.vcs.cmdline.list.CvsListRecursiveCommand.listRecursively
(CvsListRecursiveCommand.java:573)
	at
org.netbeans.modules.vcs.cmdline.CommandLineVcsDirReaderRecursive.runClass
(CommandLineVcsDirReaderRecursive.java:114)
	at org.netbeans.modules.vcs.cmdline.CommandLineVcsDirReaderRecursive.run
(CommandLineVcsDirReaderRecursive.java:207)
	at java.lang.Thread.run(Thread.java:484)

This occurs under both FFJ 2.0 1099j and every build of Netbeans I've tried
since 28.  Having finally looked at the code, the error is evident, and I
attach a patch here.

RCS
file: /cvs/vcscvs/src/org/netbeans/modules/vcs/cmdline/commands/CvsModuleParser.
java,v
retrieving revision 1.7
diff -u -r1.7 CvsModuleParser.java
--- CvsModuleParser.java        2000/06/01 15:49:53     1.7
+++ CvsModuleParser.java        2000/11/19 01:16:11
@@ -195,7 +195,7 @@
                         int n = module.size();
                        dirLocations.remove(work);
                         if (alias.booleanValue()) {
-                            for(int i = 1; i < n; i++) {
+                            for(int i = 2; i < n; i++) {
                                 String moduleRep = (String) module.get(i);
                                 D.deb("put
("+work+PATHSEP+moduleRep+", "+moduleRep+")");
                                 dirLocations.put(work+PATHSEP+moduleRep,
moduleRep);

This fix was tested on the cvs version of netbeans, and didn't catch the
machine on fire.
Comment 1 Andy Boyko 2000-11-19 01:26:59 UTC
In case it helps: Sun JDK 1.3 on Windows 2000; the CVS executable is 1.11, from
the wincvs distribution.
Comment 2 Martin Entlicher 2000-11-20 10:36:59 UTC
Thanks for the description.
It is fixed in sources now, the correction should appear in build #74 and
release3.1 #11
Comment 3 Martin Grebac 2001-04-02 12:36:47 UTC
Fixed in FFJ2.0 JP1.
Comment 4 dmladek 2001-05-30 17:21:38 UTC
fixed long time ago and in boston JP1.
in [NBdev-199] works fine
Comment 5 Quality Engineering 2003-07-02 17:19:41 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.