Are there published specs for private native methods in package
com.sun.tools.jdi?
I have no idea, but it hardly seems likely. A search for that package
name at java.sun.com comes up empty.
Then again, it's also interesting to observe that these are all related
to shared-memory transport, which isn't supported by the java.net
classes. Makes me wonder if they're *really* necessary to making use of
JPDA.
Nathan
Uncle George wrote:
>
> Its interesting to observer that these native calls appear to be 'IP' calls (
>sendpacket, accept, attach, etc... ). it would seem that
> they could use the java.net classes to do the work. BUT i suspect that these are
>fake Are there specs to these native calls ?
> gat
>
> Nathan Meyers wrote:
>
> > On 28 Oct, Daniel Barclay wrote:
> > >> From: Nathan Meyers <[EMAIL PROTECTED]>
> > >
> > >
> > >> > ... JDWP (Java Debug Wire Protocol)
> > >>
> > >> And it's JDWP that's missing. It has a native component that's not a
> > >> part of the JDK and hasn't been ported to Linux. Sun is silent on the
> > >> availability question, and some great tools like JBuilder can't debug
> > >> without it.
> > >
> > > How can a wire protocol have any software component? It's a
> > > protocol.
> >
> > It's not just a protocol, it's an API to use the protocol. And part of
> > the API is implemented natively. Just implement these 11 native methods
> > and you've got a working JDWP (and, by extension, JPDA) API:
> >
> > > private native void com.sun.tools.jdi.SharedMemoryConnection.close0(long)
> > > private native byte com.sun.tools.jdi.SharedMemoryConnection.receiveByte0(long)
>throws java.io.IOException
> > > private native void
>com.sun.tools.jdi.SharedMemoryConnection.receivePacket0(long,com.sun.tools.jdi.Packet)
> throws java.io.IOException
> > > private native void
>com.sun.tools.jdi.SharedMemoryConnection.sendByte0(long,byte) throws
>java.io.IOException
> > > private native void
>com.sun.tools.jdi.SharedMemoryConnection.sendPacket0(long,com.sun.tools.jdi.Packet)
>throws java.io.IOException
> > > private native long com.sun.tools.jdi.SharedMemoryTransport.accept0(long) throws
>java.io.IOException
> > > private native long
>com.sun.tools.jdi.SharedMemoryTransport.attach0(java.lang.String) throws
>java.io.IOException
> > > private native void com.sun.tools.jdi.SharedMemoryTransport.initialize()
> > > private native java.lang.String
>com.sun.tools.jdi.SharedMemoryTransport.name(long) throws java.io.IOException
> > > private native long
>com.sun.tools.jdi.SharedMemoryTransport.startListening0(java.lang.String) throws
>java.io.IOException
> > > private native void com.sun.tools.jdi.SharedMemoryTransport.stopListening0(long)
>throws java.io.IOException
> >
> > Nathan
> >
> > ----------------------------------------------------------------------
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]