[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Cp-tools-discuss] Removing debug output from DocImpl and remaining
From: |
Mark Wielaard |
Subject: |
Re: [Cp-tools-discuss] Removing debug output from DocImpl and remaining Classpath errors |
Date: |
08 May 2002 04:36:53 +0200 |
Hi,
On Tue, 2002-05-07 at 00:40, Mark Wielaard wrote:
>
> With this applied the only errors/warnings I get with Classpath java.*
> subpackages are the following which I have not tracked down yet:
> [...]
> ERROR: Class not found: java.nio.
> ERROR: Class not found: java.nio.
> ERROR: Class not found: java.nio.
> ERROR: Class not found: java.nio.
> ERROR: Class not found: java.nio.
> ERROR: Class not found: java.nio.
> ERROR: Class not found: java.security.cert.
> ERROR: Class not found: java.security.cert.
OK found these. They come from code like the following in
java.security.KeyStore:
public final java.security.cert.
Certificate[] getCertificateChain(String alias) throws
KeyStoreException
{
return keyStoreSpi.engineGetCertificateChain(alias);
}
Note how the return type java.security.cert.Certificate[] is split on
two lines. The fix is to continue parsing when the last character is a
'.' and discard any whitespace.
Patch attached.
I now have only the following errors when running gjdoc on all java and
javax packages from classpath:
ERROR: Class not found 'SocketChannel' in class'java.net.Socket' member
'getChannel'
FIXME: ClassCastException in resolve()
address@hidden
FIXME: ClassCastException in resolve()
address@hidden
FIXME: ClassCastException in resolve()
address@hidden
I added the FIXME code to the SerialFieldTagImpl.resolve() which seems
to sometimes cast a ClassDocProxy to a ClassDocImpl. Will investigate a
bit more tomorrow.
Cheers,
Mark
Index: src/gnu/classpath/tools/gjdoc/MemberDocImpl.java
===================================================================
RCS file:
/cvsroot/cp-tools/gjdoc/src/gnu/classpath/tools/gjdoc/MemberDocImpl.java,v
retrieving revision 1.3
diff -u -r1.3 MemberDocImpl.java
--- src/gnu/classpath/tools/gjdoc/MemberDocImpl.java 24 Feb 2002 01:28:38
-0000 1.3
+++ src/gnu/classpath/tools/gjdoc/MemberDocImpl.java 8 May 2002 02:24:20
-0000
@@ -75,7 +75,7 @@
return lastWordStart;
}
else if (Parser.WHITESPACE.indexOf(source[startIndex])>=0) {
- if (word.length()>0) {
+ if (word.length()>0 && !word.endsWith(".")) {
if (processModifier(word)) {
}
else if (typeName==null && !isConstructor()) {
@@ -174,7 +174,13 @@
}
else {
//throw new Error("Class not found: "+className);
- Main.getRootDoc().printError("Class not found: "+className);
+ Main.getRootDoc().printError("Class not found '"
+ + className
+ + "' in class'"
+ + containingClass().qualifiedName()
+ + "' member '"
+ + name()
+ + "'");
}
}
}