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

Diff of /classpath/gnu/classpath/jdwp/id/ClassLoaderId.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.InvalidClassLoaderException;
44    
45  /**  /**
46   * A class which represents a JDWP thread id   * A class which represents a JDWP thread id
# Line 61  public class ClassLoaderId Line 62  public class ClassLoaderId
62    {    {
63      super (JdwpConstants.Tag.CLASS_LOADER);      super (JdwpConstants.Tag.CLASS_LOADER);
64    }    }
65    
66      /**
67       * Gets the ClassLoader represented by this ID
68       *
69       * @throws InvalidClassLoaderException if ClassLoader is garbage collected,
70       *           or otherwise invalid
71       */
72      public ClassLoader getClassLoader ()
73        throws InvalidClassLoaderException
74      {
75        ClassLoader cl = (ClassLoader) _reference.get ();
76    
77        if (cl == null)
78          throw new InvalidClassLoaderException (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