classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] [RFA/JDWP] ReferenceTypeCommandSet.java


From: Aaron Luchko
Subject: [cp-patches] [RFA/JDWP] ReferenceTypeCommandSet.java
Date: Tue, 05 Jul 2005 15:32:35 -0400

Okay, here's the first CommandSet with some real heft,

http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdwp/jdwp-protocol.html#JDWP_ReferenceType

There are a couple interesting points for this patch. The first is that
upon Keith's suggestion any Command which has something to do with
generics (in this case just queries for the generic signature) we just
throw a NotImplementedException since we don't do any generics. This
shouldn't cause any problems because there's always a non-generic
counterpart though we could theoretically also return an empty string
for the generic signature.

There's also a couple places I use classes from java.lang.reflect
This is a bit of a problem as it's been pointed out if in the instance
of a command like 
http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdwp/jdwp-protocol.html#JDWP_ReferenceType_GetValues
Using the Field object will cause the Class to initialize which would be
changing the execution of the program. Tom Tromey suggested we could
replace the java.lang.relfect classes we use by our own classes later on
that reach into the JVM and avoid this problem.

Aaron

ChangeLog

2005-07-05  Aaron Luchko  <address@hidden>

        * gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java:New
file.

Attachment: jdwpReferenceType.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]