-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2
-
b53
-
x86
-
windows_2000
FULL PRODUCT VERSION :
java version "1.4.2_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.
Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
Hello,
We have our own implemetation of the JDWP protocol.
The JDWP command : IDSizes Command (7)
should return the size of the IDs during communication between JDI and the debugger agent.
We have implemented the JDWP with IDs size of 2 bytes or the SUN JDI implementation of the JDWP protocol only handles ID size of 4 or 8 bytes.
This cause us trouble to integrate our Virtual Machine in common IDE such as Sun On Studio that integrate Sun JDI implementation.
see workaround (correction for this bug)
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
we have tested a simple correction for this bug that works perfectly well.
the changes are made in com.sun.tools.jdi.PacketStream.java
private long readID(int i)
{
switch (i) {
case 8: return readLong();
case 4: return (long)readInt();
case 2: return (long)readShort();//<------- this was added
default : return (long)readInt();
}
}
void writeID(int i, long l)
{
switch (i) {
case 8: writeLong(l);break;
case 4: writeInt((int)l);break;
case 2: writeShort((short)l);break;//<------- this was added
default: writeInt((int)l);break;
}
}
###@###.### 2005-04-29 16:58:48 GMT
java version "1.4.2_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.
Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 [Version 5.00.2195]
A DESCRIPTION OF THE PROBLEM :
Hello,
We have our own implemetation of the JDWP protocol.
The JDWP command : IDSizes Command (7)
should return the size of the IDs during communication between JDI and the debugger agent.
We have implemented the JDWP with IDs size of 2 bytes or the SUN JDI implementation of the JDWP protocol only handles ID size of 4 or 8 bytes.
This cause us trouble to integrate our Virtual Machine in common IDE such as Sun On Studio that integrate Sun JDI implementation.
see workaround (correction for this bug)
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
we have tested a simple correction for this bug that works perfectly well.
the changes are made in com.sun.tools.jdi.PacketStream.java
private long readID(int i)
{
switch (i) {
case 8: return readLong();
case 4: return (long)readInt();
case 2: return (long)readShort();//<------- this was added
default : return (long)readInt();
}
}
void writeID(int i, long l)
{
switch (i) {
case 8: writeLong(l);break;
case 4: writeInt((int)l);break;
case 2: writeShort((short)l);break;//<------- this was added
default: writeInt((int)l);break;
}
}
###@###.### 2005-04-29 16:58:48 GMT