| 9 | import org.omg.CORBA.*; |
| 10 | |
| 11 | public class TAOObject implements org.omg.CORBA.Object { |
| 12 | |
| 13 | //JNI implementation details (C++ peer object) |
| 14 | private long _jni_ptr; |
| 15 | |
| 16 | protected TAOObject(long ptr) { |
| 17 | _jni_ptr = ptr; |
| 18 | } |
| 19 | |
| 20 | private native void _jni_fini(); |
| 21 | |
| 22 | protected void finalize() { |
| 23 | _jni_fini(); |
| 24 | } |
| 25 | |
| 26 | @Override |
| 27 | public boolean equals(java.lang.Object o) { |
| 28 | if (o instanceof TAOObject) { |
| 29 | return _jni_ptr == ((TAOObject)o)._jni_ptr; |
| 30 | } |
| 31 | return false; |
| 32 | } |
| 33 | |
| 34 | @Override |
| 35 | public int hashCode() { |
| 36 | return Long.valueOf(_jni_ptr).hashCode(); |
| 37 | } |
| 38 | |
| 39 | //org.omg.CORBA.Object methods |
| 40 | public native boolean _is_a(String repositoryIdentifier); |
| 41 | public native boolean _is_equivalent(org.omg.CORBA.Object other); |
| 42 | public native boolean _non_existent(); |
| 43 | public native int _hash(int maximum); |
| 44 | public native org.omg.CORBA.Object _duplicate(); |
| 45 | public native void _release(); |
| 46 | |
| 47 | // DII is not implemented, these methods throw NO_IMPLEMENT |
| 48 | public org.omg.CORBA.Object _get_interface_def() { |
| 49 | throw new NO_IMPLEMENT(); |
| 50 | } |
| 51 | |
| 52 | public Request _request(String operation) { |
| 53 | throw new NO_IMPLEMENT(); |
| 54 | } |
| 55 | |
| 56 | public Request _create_request(Context ctx, String operation, |
| 57 | NVList arg_list, NamedValue result) { |
| 58 | throw new NO_IMPLEMENT(); |
| 59 | } |
| 60 | |
| 61 | public Request _create_request(Context ctx, String operation, |
| 62 | NVList arg_list, NamedValue result, ExceptionList exclist, |
| 63 | ContextList ctxlist) { |
| 64 | throw new NO_IMPLEMENT(); |
| 65 | } |
| 66 | |
| 67 | // These methods also throw NO_IMPLEMENT |
| 68 |
nothing calls this directly
no test coverage detected