Java Code Examples for org.omg.CORBA.UNKNOWN

The following are top voted examples for showing how to use org.omg.CORBA.UNKNOWN. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: TIDorbJ   File: ExecThread.java   View source code 6 votes vote down vote up
private void doInvoke(DynamicImplementation servant,
                      org.omg.CORBA.ServerRequest request)
{
    try {
        servant.invoke(request);
    }
    catch (org.omg.CORBA.SystemException se) {
        throw se;
    }
    catch (Throwable th) {
        if (m_poa_manager.m_orb.m_trace != null) {
            String[] msg =
              { toString(),
               " Exception in servant invoke method, UNKOWN thrown: "
              };
            
            m_trace.printStackTrace(Trace.DEBUG, msg, th);
        }
        throw new org.omg.CORBA.UNKNOWN();
    }
}
 
Example 2
Project: TIDorbJ   File: UserExceptionEncoder.java   View source code 6 votes vote down vote up
public static org.omg.CORBA.UnknownUserException
	read(org.omg.CORBA.portable.InputStream in,
	     org.omg.CORBA.TypeCode[] types)
{
    String name = in.read_string();

    try {
        if (types != null)
            for (int i = 0; i < types.length; i++) {
                if (types[i].kind().value() != TCKind._tk_except)
                    throw new 
                    BAD_PARAM("Bad ExceptionList: not Exception TypeCode");

                if (name.equals(types[i].name())) {
                    Any any = in.orb().create_any();
                    any.read_value(in, types[i]);
                    return new UnknownUserException(any);
                }
            }
    }
    catch (BadKind bk) {}
    throw new UNKNOWN("Unexpected exception: " + name);
}
 
Example 3
Project: OpenJSharp   File: UEInfoServiceContext.java   View source code 5 votes vote down vote up
public UEInfoServiceContext(InputStream is, GIOPVersion gv)
{
    super(is, gv) ;

    try {
        unknown = (Throwable) in.read_value() ;
    } catch (ThreadDeath d) {
        throw d ;
    } catch (Throwable e) {
        unknown = new UNKNOWN( 0, CompletionStatus.COMPLETED_MAYBE ) ;
    }
}
 
Example 4
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN unknownCorbaExc( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( UNKNOWN_CORBA_EXC, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.unknownCorbaExc",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 5
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN runtimeexception( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( RUNTIMEEXCEPTION, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.runtimeexception",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 6
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN unknownServerError( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( UNKNOWN_SERVER_ERROR, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.unknownServerError",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 7
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN unknownDsiSysex( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( UNKNOWN_DSI_SYSEX, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.unknownDsiSysex",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 8
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN unknownSysex( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( UNKNOWN_SYSEX, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.unknownSysex",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 9
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN wrongInterfaceDef( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( WRONG_INTERFACE_DEF, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.wrongInterfaceDef",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 10
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN noInterfaceDefStub( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( NO_INTERFACE_DEF_STUB, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.noInterfaceDefStub",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 11
Project: OpenJSharp   File: ORBUtilSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN unknownExceptionInDispatch( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( UNKNOWN_EXCEPTION_IN_DISPATCH, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.FINE )) {
        Object[] parameters = null ;
        doLog( Level.FINE, "ORBUTIL.unknownExceptionInDispatch",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 12
Project: OpenJSharp   File: NamingSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN bindUpdateContextFailed( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( BIND_UPDATE_CONTEXT_FAILED, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "NAMING.bindUpdateContextFailed",
            parameters, NamingSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 13
Project: OpenJSharp   File: NamingSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN bindFailure( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( BIND_FAILURE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "NAMING.bindFailure",
            parameters, NamingSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 14
Project: OpenJSharp   File: NamingSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN resolveConversionFailure( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( RESOLVE_CONVERSION_FAILURE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "NAMING.resolveConversionFailure",
            parameters, NamingSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 15
Project: OpenJSharp   File: NamingSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN resolveFailure( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( RESOLVE_FAILURE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "NAMING.resolveFailure",
            parameters, NamingSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 16
Project: OpenJSharp   File: NamingSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN unbindFailure( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( UNBIND_FAILURE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "NAMING.unbindFailure",
            parameters, NamingSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 17
Project: OpenJSharp   File: POASystemException.java   View source code 5 votes vote down vote up
public UNKNOWN otshookexception( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( OTSHOOKEXCEPTION, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "POA.otshookexception",
            parameters, POASystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 18
Project: OpenJSharp   File: POASystemException.java   View source code 5 votes vote down vote up
public UNKNOWN unknownServerException( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( UNKNOWN_SERVER_EXCEPTION, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "POA.unknownServerException",
            parameters, POASystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 19
Project: OpenJSharp   File: POASystemException.java   View source code 5 votes vote down vote up
public UNKNOWN unknownServerappException( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( UNKNOWN_SERVERAPP_EXCEPTION, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "POA.unknownServerappException",
            parameters, POASystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 20
Project: OpenJSharp   File: POASystemException.java   View source code 5 votes vote down vote up
public UNKNOWN unknownLocalinvocationError( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( UNKNOWN_LOCALINVOCATION_ERROR, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "POA.unknownLocalinvocationError",
            parameters, POASystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 21
Project: OpenJSharp   File: UtilSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN unknownSysex( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( UNKNOWN_SYSEX, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "UTIL.unknownSysex",
            parameters, UtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 22
Project: OpenJSharp   File: InterceptorsSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN unknownRequestInvoke( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( UNKNOWN_REQUEST_INVOKE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.FINE )) {
        Object[] parameters = null ;
        doLog( Level.FINE, "INTERCEPTORS.unknownRequestInvoke",
            parameters, InterceptorsSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 23
Project: OpenJSharp   File: OMGSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN unknownUserException( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( UNKNOWN_USER_EXCEPTION, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.FINE )) {
        Object[] parameters = null ;
        doLog( Level.FINE, "OMG.unknownUserException",
            parameters, OMGSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 24
Project: OpenJSharp   File: OMGSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN unsupportedSystemException( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( UNSUPPORTED_SYSTEM_EXCEPTION, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "OMG.unsupportedSystemException",
            parameters, OMGSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 25
Project: OpenJSharp   File: OMGSystemException.java   View source code 5 votes vote down vote up
public UNKNOWN piUnknownUserException( CompletionStatus cs, Throwable t ) {
    UNKNOWN exc = new UNKNOWN( PI_UNKNOWN_USER_EXCEPTION, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "OMG.piUnknownUserException",
            parameters, OMGSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 26
Project: openjdk-jdk10   File: UEInfoServiceContext.java   View source code 5 votes vote down vote up
public UEInfoServiceContext(InputStream is, GIOPVersion gv)
{
    super(is, gv) ;

    try {
        unknown = (Throwable) in.read_value() ;
    } catch (ThreadDeath d) {
        throw d ;
    } catch (Throwable e) {
        unknown = new UNKNOWN( 0, CompletionStatus.COMPLETED_MAYBE ) ;
    }
}
 
Example 27
Project: openjdk9   File: UEInfoServiceContext.java   View source code 5 votes vote down vote up
public UEInfoServiceContext(InputStream is, GIOPVersion gv)
{
    super(is, gv) ;

    try {
        unknown = (Throwable) in.read_value() ;
    } catch (ThreadDeath d) {
        throw d ;
    } catch (Throwable e) {
        unknown = new UNKNOWN( 0, CompletionStatus.COMPLETED_MAYBE ) ;
    }
}
 
Example 28
Project: openjdk9   File: CorbaMessageMediatorImpl.java   View source code 5 votes vote down vote up
public CorbaMessageMediator createUnknownExceptionResponse(
    CorbaMessageMediator messageMediator, UnknownException ex)
{
    // NOTE: This service context container gets augmented in
    // tail call.
    ServiceContexts contexts = null;
    SystemException sys = new UNKNOWN( 0,
        CompletionStatus.COMPLETED_MAYBE);
    contexts = new ServiceContexts( (ORB)messageMediator.getBroker() );
    UEInfoServiceContext uei = new UEInfoServiceContext(sys);
    contexts.put( uei ) ;
    return createSystemExceptionResponse(messageMediator, sys, contexts);
}
 
Example 29
Project: JAADAS   File: LocalMustAliasAnalysis.java   View source code 5 votes vote down vote up
/** Initial most conservative value: has to be {@link UNKNOWN} (top). */
protected HashMap<Value,Object> entryInitialFlow()
{
	HashMap<Value,Object> m = new HashMap<Value,Object>();
    for (Value l : (Collection<Value>) localsAndFieldRefs) {
        m.put(l, UNKNOWN);
    }
    return m;
}
 
Example 30
Project: JAADAS   File: LocalMustAliasAnalysis.java   View source code 5 votes vote down vote up
/**
 * Returns a string (natural number) representation of the instance key associated with l
 * at statement s or <code>null</code> if there is no such key associated or <code>UNKNOWN</code> if 
 * the value of l at s is {@link #UNKNOWN}. 
 * @param l any local of the associated method
 * @param s the statement at which to check
 */
public String instanceKeyString(Local l, Stmt s) {
    Object ln = getFlowBefore(s).get(l);
    if(ln==null) {
    	return null;
    } else  if(ln==UNKNOWN) {
    	return UNKNOWN.toString();
    }
    return ln.toString();
}
 
Example 31
Project: JAADAS   File: LocalMustAliasAnalysis.java   View source code 5 votes vote down vote up
/**
 * Returns true if this analysis has any information about local l
 * at statement s (i.e. it is not {@link #UNKNOWN}).
 * In particular, it is safe to pass in locals/statements that are not
 * even part of the right method. In those cases <code>false</code>
 * will be returned.
 * Permits s to be <code>null</code>, in which case <code>false</code> will be returned.
 */
public boolean hasInfoOn(Local l, Stmt s) {
	HashMap<Value,Object> flowBefore = getFlowBefore(s);
	if(flowBefore==null) {
		return false;
	} else {
		Object info = flowBefore.get(l);
		return info!=null && info!=UNKNOWN;
	}
}
 
Example 32
Project: JAADAS   File: LocalMustAliasAnalysis.java   View source code 5 votes vote down vote up
/**
 * @return true if values of l1 (at s1) and l2 (at s2) have the
 * exact same object IDs, i.e. at statement s1 the variable l1 must point to the same object
 * as l2 at s2.
 */
public boolean mustAlias(Local l1, Stmt s1, Local l2, Stmt s2) {
    Object l1n = getFlowBefore(s1).get(l1);
    Object l2n = getFlowBefore(s2).get(l2);

    if (l1n == UNKNOWN || l2n == UNKNOWN)
        return false;

    return l1n == l2n;
}
 
Example 33
Project: lookaside_java-1.8.0-openjdk   File: UEInfoServiceContext.java   View source code 5 votes vote down vote up
public UEInfoServiceContext(InputStream is, GIOPVersion gv)
{
    super(is, gv) ;

    try {
        unknown = (Throwable) in.read_value() ;
    } catch (ThreadDeath d) {
        throw d ;
    } catch (Throwable e) {
        unknown = new UNKNOWN( 0, CompletionStatus.COMPLETED_MAYBE ) ;
    }
}
 
Example 34
Project: lookaside_java-1.8.0-openjdk   File: CorbaMessageMediatorImpl.java   View source code 5 votes vote down vote up
public CorbaMessageMediator createUnknownExceptionResponse(
    CorbaMessageMediator messageMediator, UnknownException ex)
{
    // NOTE: This service context container gets augmented in
    // tail call.
    ServiceContexts contexts = null;
    SystemException sys = new UNKNOWN( 0,
        CompletionStatus.COMPLETED_MAYBE);
    contexts = new ServiceContexts( (ORB)messageMediator.getBroker() );
    UEInfoServiceContext uei = new UEInfoServiceContext(sys);
    contexts.put( uei ) ;
    return createSystemExceptionResponse(messageMediator, sys, contexts);
}
 
Example 35
Project: jdk8u_corba   File: UEInfoServiceContext.java   View source code 5 votes vote down vote up
public UEInfoServiceContext(InputStream is, GIOPVersion gv)
{
    super(is, gv) ;

    try {
        unknown = (Throwable) in.read_value() ;
    } catch (ThreadDeath d) {
        throw d ;
    } catch (Throwable e) {
        unknown = new UNKNOWN( 0, CompletionStatus.COMPLETED_MAYBE ) ;
    }
}
 
Example 36
Project: jdk8u_corba   File: CorbaMessageMediatorImpl.java   View source code 5 votes vote down vote up
public CorbaMessageMediator createUnknownExceptionResponse(
    CorbaMessageMediator messageMediator, UnknownException ex)
{
    // NOTE: This service context container gets augmented in
    // tail call.
    ServiceContexts contexts = null;
    SystemException sys = new UNKNOWN( 0,
        CompletionStatus.COMPLETED_MAYBE);
    contexts = new ServiceContexts( (ORB)messageMediator.getBroker() );
    UEInfoServiceContext uei = new UEInfoServiceContext(sys);
    contexts.put( uei ) ;
    return createSystemExceptionResponse(messageMediator, sys, contexts);
}
 
Example 37
Project: javify   File: DivideableAny.java   View source code 5 votes vote down vote up
/**
 * Compares with other DynAny for equality. The final_type, array size and
 * array members must match.
 */
public boolean equal(DynAny other)
{
  try
    {
      if (!official_type.equal(other.type()))
        return false;
      else if (other instanceof DivideableAny)
        {
          DivideableAny x = (DivideableAny) other;
          if (x.array.length != array.length)
            return false;

          for (int i = 0; i < array.length; i++)
            {
              if (!array [ i ].equal(x.array [ i ]))
                return false;
            }
          return true;
        }
      else if (other == null || other instanceof AbstractAny)
        return false;
      else
        return other.to_any().equal(to_any());
    }
  catch (TypeMismatch e)
    {
      UNKNOWN u = new UNKNOWN(MINOR, CompletionStatus.COMPLETED_NO);
      u.initCause(e);
      throw u;
    }
}
 
Example 38
Project: javify   File: EmptyExceptionHolder.java   View source code 5 votes vote down vote up
/**
 * Reads the exception from the input stream.
 *
 * The value field obtains the value of either the read exception or
 * the UNKNOWN if the repository ID does not match
 * the exception from the reachable code.
 */
public void _read(InputStream input)
{
  String id = input.read_string();
  Object ex = ObjectCreator.Idl2Object(id);
  if (ex == null)
    value = new UNKNOWN(id);
  else
    value = (Throwable) ex;
}
 
Example 39
Project: javify   File: ObjectCreator.java   View source code 5 votes vote down vote up
/**
 * Insert this exception into the given Any. On failure, insert the UNKNOWN
 * exception.
 */
public static void insertException(Any into, Throwable exception)
{
  boolean ok = false;
  if (exception instanceof SystemException)
    ok = insertSysException(into, (SystemException) exception);
  else if (exception instanceof UserException)
    ok = insertWithHelper(into, exception);

  if (!ok)
    ok = insertSysException(into, new UNKNOWN());
  if (!ok)
    throw new InternalError("Exception wrapping broken");
}
 
Example 40
Project: jvm-stm   File: DivideableAny.java   View source code 5 votes vote down vote up
/**
 * Compares with other DynAny for equality. The final_type, array size and
 * array members must match.
 */
public boolean equal(DynAny other)
{
  try
    {
      if (!official_type.equal(other.type()))
        return false;
      else if (other instanceof DivideableAny)
        {
          DivideableAny x = (DivideableAny) other;
          if (x.array.length != array.length)
            return false;

          for (int i = 0; i < array.length; i++)
            {
              if (!array [ i ].equal(x.array [ i ]))
                return false;
            }
          return true;
        }
      else if (other == null || other instanceof AbstractAny)
        return false;
      else
        return other.to_any().equal(to_any());
    }
  catch (TypeMismatch e)
    {
      UNKNOWN u = new UNKNOWN(MINOR, CompletionStatus.COMPLETED_NO);
      u.initCause(e);
      throw u;
    }
}