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

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