This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Inexplicable Parameter-Passing Phenomena w/MinGW GCJ


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]