cp-tools-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cp-tools-discuss] gjdoc: ClassDocProxy vs ClassDocImpl


From: Mark Wielaard
Subject: [Cp-tools-discuss] gjdoc: ClassDocProxy vs ClassDocImpl
Date: 09 May 2002 00:12:25 +0200

Hi,

I am trying to figure out how/when a ClassDocProxy transforms into a
ClassDocImpl.

I had to had the attached patch to SerialFieldTagImpl.resolve() since it
would give ClassCastExceptions.

Shouldn't all ClassDocProxies have been replaced by
loadScheduledClasses()? If someone could explain the design a bit more,
that would be very helpfull.

Thanks,

Mark
Index: src/gnu/classpath/tools/gjdoc/SerialFieldTagImpl.java
===================================================================
RCS file: 
/cvsroot/cp-tools/gjdoc/src/gnu/classpath/tools/gjdoc/SerialFieldTagImpl.java,v
retrieving revision 1.1.1.1
diff -u -6 -r1.1.1.1 SerialFieldTagImpl.java
--- src/gnu/classpath/tools/gjdoc/SerialFieldTagImpl.java       13 Feb 2002 
10:45:53 -0000      1.1.1.1
+++ src/gnu/classpath/tools/gjdoc/SerialFieldTagImpl.java       8 May 2002 
22:10:00 -0000
@@ -65,12 +65,14 @@
       try {
          Type type=contextClass.typeForString(fieldType);
          this.fieldTypeDoc=(ClassDocImpl)type.asClassDoc();
       } catch (ParseException e) {
          System.err.println("FIXME: add try-catch to force compilation"
                             + e);
+      } catch (ClassCastException cce) {
+         System.err.println("FIXME: ClassCastException in resolve() " + this);
       }
    }
 
    public ClassDoc fieldTypeDoc() {
       return fieldTypeDoc;
    }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]