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

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

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

revision 1.2 by mark, Sat Jul 2 20:32:10 2005 UTC revision 1.3 by keiths, Sat Aug 20 19:10:20 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.InvalidThreadGroupException;
44    
45  /**  /**
46   * A class which represents a JDWP thread group id   * A class which represents a JDWP thread group id
# Line 61  public class ThreadGroupId Line 62  public class ThreadGroupId
62    {    {
63      super (JdwpConstants.Tag.THREAD_GROUP);      super (JdwpConstants.Tag.THREAD_GROUP);
64    }    }
65    
66      /**
67       * Gets the thread group represented by this ID
68       *
69       * @throws InvalidThreadGroupException if the group is invalid
70       *           or garbage collected
71       */
72      public ThreadGroup getThreadGroup ()
73        throws InvalidThreadGroupException
74      {
75        ThreadGroup group = (ThreadGroup) _reference.get ();
76    
77        if (group == null)
78          throw new InvalidThreadGroupException (getId ());
79    
80        return group;
81      }
82  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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