/[classpath]/classpath/gnu/classpath/jdwp/processor/ClassObjectReferenceCommandSet.java
ViewVC logotype

Diff of /classpath/gnu/classpath/jdwp/processor/ClassObjectReferenceCommandSet.java

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

revision 1.1.2.1 by gnu_andrew, Tue Aug 2 20:12:08 2005 UTC revision 1.1.2.2 by gnu_andrew, Sat Sep 10 15:31:36 2005 UTC
# Line 39  exception statement from your version. * Line 39  exception statement from your version. *
39    
40  package gnu.classpath.jdwp.processor;  package gnu.classpath.jdwp.processor;
41    
 import gnu.classpath.jdwp.Jdwp;  
42  import gnu.classpath.jdwp.JdwpConstants;  import gnu.classpath.jdwp.JdwpConstants;
43  import gnu.classpath.jdwp.exception.JdwpException;  import gnu.classpath.jdwp.exception.JdwpException;
44  import gnu.classpath.jdwp.exception.JdwpInternalErrorException;  import gnu.classpath.jdwp.exception.JdwpInternalErrorException;
45  import gnu.classpath.jdwp.exception.NotImplementedException;  import gnu.classpath.jdwp.exception.NotImplementedException;
 import gnu.classpath.jdwp.id.IdManager;  
46  import gnu.classpath.jdwp.id.ObjectId;  import gnu.classpath.jdwp.id.ObjectId;
47  import gnu.classpath.jdwp.id.ReferenceTypeId;  import gnu.classpath.jdwp.id.ReferenceTypeId;
48    
# Line 57  import java.nio.ByteBuffer; Line 55  import java.nio.ByteBuffer;
55   *   *
56   * @author Aaron Luchko <aluchko@redhat.com>   * @author Aaron Luchko <aluchko@redhat.com>
57   */   */
58  public class ClassObjectReferenceCommandSet implements CommandSet  public class ClassObjectReferenceCommandSet
59      extends CommandSet
60  {  {
   // Manages all the different ids that are assigned by jdwp  
   private final IdManager idMan = Jdwp.getIdManager();  
   
61    public boolean runCommand(ByteBuffer bb, DataOutputStream os, byte command)    public boolean runCommand(ByteBuffer bb, DataOutputStream os, byte command)
62      throws JdwpException      throws JdwpException
63    {    {
# Line 89  public class ClassObjectReferenceCommand Line 85  public class ClassObjectReferenceCommand
85    public void executeReflectedType(ByteBuffer bb, DataOutputStream os)    public void executeReflectedType(ByteBuffer bb, DataOutputStream os)
86      throws JdwpException, IOException      throws JdwpException, IOException
87    {    {
88      ObjectId oid = idMan.readId(bb);      ObjectId oid = idMan.readObjectId(bb);
89      Class clazz = (Class) oid.getObject();      Class clazz = (Class) oid.getObject();
90    
91      // The difference between a ClassObjectId and a ReferenceTypeId is one is      // The difference between a ClassObjectId and a ReferenceTypeId is one is

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

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