/[classpath]/classpath/gnu/classpath/jdwp/id/ClassObjectId.java
ViewVC logotype

Diff of /classpath/gnu/classpath/jdwp/id/ClassObjectId.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2.2.1 by gnu_andrew, Tue Aug 2 20:12:08 2005 UTC revision 1.2.2.2 by gnu_andrew, Sat Sep 10 15:31:36 2005 UTC
# Line 40  exception statement from your version. * Line 40  exception statement from your version. *
40  package gnu.classpath.jdwp.id;  package gnu.classpath.jdwp.id;
41    
42  import gnu.classpath.jdwp.JdwpConstants;  import gnu.classpath.jdwp.JdwpConstants;
43    import gnu.classpath.jdwp.exception.InvalidClassException;
44    
45  /**  /**
46   * A class which represents a JDWP class object id   * A class which represents a JDWP class object id
# Line 61  public class ClassObjectId Line 62  public class ClassObjectId
62    {    {
63      super (JdwpConstants.Tag.CLASS_OBJECT);      super (JdwpConstants.Tag.CLASS_OBJECT);
64    }    }
65    
66      /**
67       * Gets the Class object represented by this ID
68       *
69       * @throws InvalidClassException if Class is garbage collected,
70       *           or otherwise invalid
71       */
72      public Class getClassObject ()
73        throws InvalidClassException
74      {
75        Class cl = (Class) _reference.get ();
76    
77        if (cl == null)
78          throw new InvalidClassException (getId ());
79    
80        return cl;
81      }
82  }  }

Legend:
Removed from v.1.2.2.1  
changed lines
  Added in v.1.2.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26