Small fix for BreakpointEvent for filter compatibility. Requesting
approval and commit.
- Kyle
2006-06-13 Kyle Galloway <[EMAIL PROTECTED]>
* gnu/classpath/jdwp/event/BreakpointEvent.java : Added
Object _instance for compatibility with filters.
(getParameter): Modified to allow access to above.
Index: BreakpointEvent.java
===================================================================
RCS file: /sources/classpath/classpath/gnu/classpath/jdwp/event/BreakpointEvent.java,v
retrieving revision 1.2
diff -u -r1.2 BreakpointEvent.java
--- BreakpointEvent.java 12 Jun 2006 19:43:26 -0000 1.2
+++ BreakpointEvent.java 13 Jun 2006 17:28:59 -0000
@@ -62,6 +62,9 @@
// Location where breakpoint occurred
private Location _location;
+
+ //object instance
+ private Object _instance;
/**
* Constructs a new BreakpointEvent
@@ -69,11 +72,12 @@
* @param thread thread in which event occurred
* @param loc location where breakpoint occurred
*/
- public BreakpointEvent(Thread thread, Location loc)
+ public BreakpointEvent(Thread thread, Location loc, Object instance)
{
super(JdwpConstants.EventKind.BREAKPOINT);
_thread = thread;
_location = loc;
+ _instance = instance;
}
/**
@@ -89,6 +93,8 @@
return _thread;
else if (type == EVENT_LOCATION)
return _location;
+ else if (type == EVENT_INSTANCE)
+ return _instance;
return null;
}