comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Does Java polymorphism not work via the IDL Java Bridge?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Does Java polymorphism not work via the IDL Java Bridge? [message #85665] Sun, 25 August 2013 19:50 Go to next message
Matt Francis is currently offline  Matt Francis
Messages: 94
Registered: May 2010
Member
I'm working on a project in conjugation with a Java developer. I'm writing an IDL 'wrapper' around his Java code using the Java bridge so that our organisation has a consistent interface to a database in Java and IDL.

Anyhoo, my immediate problem is that the Java Bridge seems to not understand Java polymorphism. There is a Java method that takes a java 'Calendar' object as an argument. I'm giving it a 'Gregoian Calendar' object, which is a sub-class of Calendar so that should be ok. However, it complains that it can't find the appropriate method. I guess I can look into downcasting the object to a Calendar, but it seems awfully crippling for the Java bridge to not be able to handle this.

Am I missing something here?
Re: Does Java polymorphism not work via the IDL Java Bridge? [message #85666 is a reply to message #85665] Sun, 25 August 2013 19:59 Go to previous message
Matt Francis is currently offline  Matt Francis
Messages: 94
Registered: May 2010
Member
Ack! Apologies, as usual when you spend an hour trying to find the source of a problem before posting, the solution presents itself 30 seconds later. The error was in a different argument, polymorphism seems to be working fine.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Help with least squares on non-linear function
Next Topic: programmatically compile a procedure without a .pro extension

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:37:00 PDT 2025

Total time taken to generate the page: 0.00542 seconds