X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 May 2008 05:40 PM by  anon
java to IDL: abstract, interface classes
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
19 May 2008 05:40 PM
    While calling objects from java into IDL, can classes which have been declared abstract or those which are an interface class be called. When i try, this gives me an error saying java.lang.Instantiation exception.

    Deleted User



    New Member


    Posts:
    New Member


    --
    19 May 2008 05:40 PM
    The only way to create an IDL-Java Import Bridge "connection" is with a call to: "OBJ_NEW('IDLjavaObject$..." and that OBJ_NEW call needs to be able to "instantiate an object". Abstract and interface classes cannot make instances of an object, so one cannot use OBJ_NEW with them and, thus, cannot get an IDL-Java Import Bridge connection started. The solution is obviously to subclass in Java before you try to create an object of that subclass (or that uses that Interface) in IDL. James Jones
    You are not authorized to post a reply.