Inexplicable Parameter-Passing Phenomena w/MinGW GCJ

Andrew Haley aph@redhat.com
Wed Sep 10 13:02:00 GMT 2003


Mohan Embar writes:
 > 
 > When the above skt.getSoTimeout() call is uncommented, the
 > MessageBoxes appear, but I get a "3333", which means that new
 > Integer(timeout) in DatagramSocket was not identified as either a
 > java.lang.Boolean or a java.lang.Integer in
 > natPlainDatagramSocketImplWin32.cc/setOption(). (At one point in
 > time, I printed value->getClass()->getName() and I got
 > "java.lang.Class".)
 > 
 > When the above skt.getTimeout() call (which happens AFTER the
 > skt.setSoTimeout() call and should therefore have no effect on it)
 > is commented out, no message boxes appear.
 > 
 > I know I need to troubleshoot this and document this much further, but what
 > I'm looking for is any sort of "aha" here. Keep in mind that this is a
 > statically linked libgcj.
Well, I can't believe that the right method is being called. You must
have a version mismatch between .class and .java and .o. What makes
you thisnk skt.getTimeout() really is called?
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /