/** * Handles ORB versioning of the end tag. Should only be called if chunking. * * If talking to our older ORBs (Standard Extension, Kestrel, and Ladybird), write the end flag that takes into * account all enclosing valuetypes. * * If talking a newer or foreign ORB, or if the orb instance is null, write the end flag that only takes into * account the enclosing chunked valuetypes. */ private void writeNestingLevel() { if (orb == null || ORBVersionFactory.getFOREIGN().equals(orb.getORBVersion()) || ORBVersionFactory.getNEWER().compareTo(orb.getORBVersion()) <= 0) { write_long(chunkedValueNestingLevel); } else { write_long(end_flag); } }
/** * Handles ORB versioning of the end tag. Should only be called if chunking. * * If talking to our older ORBs (Standard Extension, Kestrel, and Ladybird), write the end flag that takes into * account all enclosing valuetypes. * * If talking a newer or foreign ORB, or if the orb instance is null, write the end flag that only takes into * account the enclosing chunked valuetypes. */ private void writeNestingLevel() { if (orb == null || ORBVersionFactory.getFOREIGN().equals(orb.getORBVersion()) || ORBVersionFactory.getNEWER().compareTo(orb.getORBVersion()) <= 0) { write_long(chunkedValueNestingLevel); } else { write_long(end_flag); } }
/** * This is used to create the TypeCode for a null reference. It also handles backwards compatibility with JDK 1.3.x. * * This method will not return null. */ private TypeCode createTypeCodeForNull(org.omg.CORBA.ORB orb) { if (orb instanceof ORB) { ORB ourORB = (ORB) orb; // Preserve backwards compatibility with Kestrel and Ladybird by not fully implementing interop issue // resolution 3857, and returning a null TypeCode with a tk_value TCKind. If we're not talking to Kestrel or // Ladybird, fall through to the abstract interface case (also used for foreign ORBs). if (!ORBVersionFactory.getFOREIGN().equals(ourORB.getORBVersion()) && ORBVersionFactory.getNEWER().compareTo(ourORB.getORBVersion()) > 0) { return orb.get_primitive_tc(TCKind.tk_value); } } // Use tk_abstract_interface as detailed in the resolution // REVISIT: Define this in IDL and get the ID in generated code String abstractBaseID = "IDL:omg.org/CORBA/AbstractBase:1.0"; return orb.create_abstract_interface_tc(abstractBaseID, ""); }
/** * This is used to create the TypeCode for a null reference. It also handles backwards compatibility with JDK 1.3.x. * * This method will not return null. */ private TypeCode createTypeCodeForNull(org.omg.CORBA.ORB orb) { if (orb instanceof ORB) { ORB ourORB = (ORB) orb; // Preserve backwards compatibility with Kestrel and Ladybird by not fully implementing interop issue // resolution 3857, and returning a null TypeCode with a tk_value TCKind. If we're not talking to Kestrel or // Ladybird, fall through to the abstract interface case (also used for foreign ORBs). if (!ORBVersionFactory.getFOREIGN().equals(ourORB.getORBVersion()) && ORBVersionFactory.getNEWER().compareTo(ourORB.getORBVersion()) > 0) { return orb.get_primitive_tc(TCKind.tk_value); } } // Use tk_abstract_interface as detailed in the resolution // REVISIT: Define this in IDL and get the ID in generated code String abstractBaseID = "IDL:omg.org/CORBA/AbstractBase:1.0"; return orb.create_abstract_interface_tc(abstractBaseID, ""); }
|| ORBVersionFactory.getNEWER().compareTo(orb.getORBVersion()) <= 0)
|| ORBVersionFactory.getNEWER().compareTo(orb.getORBVersion()) <= 0)
private void writeClassBody(Class<?> clz) { if (orb == null || ORBVersionFactory.getFOREIGN().equals(orb.getORBVersion()) || ORBVersionFactory.getNEWER().compareTo(orb.getORBVersion()) <= 0) { write_value(Util.getCodebase(clz)); write_value(repIdStrs.createForAnyType(clz)); } else { write_value(repIdStrs.createForAnyType(clz)); write_value(Util.getCodebase(clz)); } }
private void writeClassBody(Class<?> clz) { if (orb == null || ORBVersionFactory.getFOREIGN().equals(orb.getORBVersion()) || ORBVersionFactory.getNEWER().compareTo(orb.getORBVersion()) <= 0) { write_value(Util.getCodebase(clz)); write_value(repIdStrs.createForAnyType(clz)); } else { write_value(repIdStrs.createForAnyType(clz)); write_value(Util.getCodebase(clz)); } }
&& targetOrbVersion.lessThan(ORBVersionFactory.getNEWER()))
&& targetOrbVersion.lessThan(ORBVersionFactory.getNEWER()))
|| ORBVersionFactory.getNEWER().compareTo(orb.getORBVersion()) <= 0)
|| ORBVersionFactory.getNEWER().compareTo(orb.getORBVersion()) <= 0)
|| ORBVersionFactory.getNEWER().compareTo(tcORB.getORBVersion()) <= 0) return tcORB.get_primitive_tc(TCKind.tk_wchar); else
|| ORBVersionFactory.getNEWER().compareTo(tcORB.getORBVersion()) <= 0) return tcORB.get_primitive_tc(TCKind.tk_wchar); else