Java Code Examples for com.sun.corba.se.spi.orb.ORBVersion#NEW

The following examples show how to use com.sun.corba.se.spi.orb.ORBVersion#NEW . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ORBVersionFactory.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
private static ORBVersion byteToVersion( byte value )
{
    /* Throwing an exception here would cause this version to be
    * incompatible with future versions of the ORB, to the point
    * that this version could
    * not even unmarshal objrefs from a newer version that uses
    * extended versioning.  Therefore, we will simply treat all
    * unknown versions as the latest version.
    if (value < 0)
        throw new INTERNAL() ;
    */

    /**
     * Update: If we treat all unknown versions as the latest version
     * then when we send an IOR with a PEORB version to an ORB that
     * doesn't know the PEORB version it will treat it as whatever
     * its idea of the latest version is.  Then, if that IOR is
     * sent back to the server and compared with the original
     * the equality check will fail because the versions will be
     * different.
     *
     * Instead, just capture the version bytes.
     */

    switch (value) {
        case ORBVersion.FOREIGN : return ORBVersionImpl.FOREIGN ;
        case ORBVersion.OLD : return ORBVersionImpl.OLD ;
        case ORBVersion.NEW : return ORBVersionImpl.NEW ;
        case ORBVersion.JDK1_3_1_01: return ORBVersionImpl.JDK1_3_1_01 ;
        case ORBVersion.NEWER : return ORBVersionImpl.NEWER ;
        case ORBVersion.PEORB : return ORBVersionImpl.PEORB ;
        default : return new ORBVersionImpl(value);
    }
}
 
Example 2
Source File: ORBVersionFactory.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private static ORBVersion byteToVersion( byte value )
{
    /* Throwing an exception here would cause this version to be
    * incompatible with future versions of the ORB, to the point
    * that this version could
    * not even unmarshal objrefs from a newer version that uses
    * extended versioning.  Therefore, we will simply treat all
    * unknown versions as the latest version.
    if (value < 0)
        throw new INTERNAL() ;
    */

    /**
     * Update: If we treat all unknown versions as the latest version
     * then when we send an IOR with a PEORB version to an ORB that
     * doesn't know the PEORB version it will treat it as whatever
     * its idea of the latest version is.  Then, if that IOR is
     * sent back to the server and compared with the original
     * the equality check will fail because the versions will be
     * different.
     *
     * Instead, just capture the version bytes.
     */

    switch (value) {
        case ORBVersion.FOREIGN : return ORBVersionImpl.FOREIGN ;
        case ORBVersion.OLD : return ORBVersionImpl.OLD ;
        case ORBVersion.NEW : return ORBVersionImpl.NEW ;
        case ORBVersion.JDK1_3_1_01: return ORBVersionImpl.JDK1_3_1_01 ;
        case ORBVersion.NEWER : return ORBVersionImpl.NEWER ;
        case ORBVersion.PEORB : return ORBVersionImpl.PEORB ;
        default : return new ORBVersionImpl(value);
    }
}
 
Example 3
Source File: ORBVersionFactory.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private static ORBVersion byteToVersion( byte value )
{
    /* Throwing an exception here would cause this version to be
    * incompatible with future versions of the ORB, to the point
    * that this version could
    * not even unmarshal objrefs from a newer version that uses
    * extended versioning.  Therefore, we will simply treat all
    * unknown versions as the latest version.
    if (value < 0)
        throw new INTERNAL() ;
    */

    /**
     * Update: If we treat all unknown versions as the latest version
     * then when we send an IOR with a PEORB version to an ORB that
     * doesn't know the PEORB version it will treat it as whatever
     * its idea of the latest version is.  Then, if that IOR is
     * sent back to the server and compared with the original
     * the equality check will fail because the versions will be
     * different.
     *
     * Instead, just capture the version bytes.
     */

    switch (value) {
        case ORBVersion.FOREIGN : return ORBVersionImpl.FOREIGN ;
        case ORBVersion.OLD : return ORBVersionImpl.OLD ;
        case ORBVersion.NEW : return ORBVersionImpl.NEW ;
        case ORBVersion.JDK1_3_1_01: return ORBVersionImpl.JDK1_3_1_01 ;
        case ORBVersion.NEWER : return ORBVersionImpl.NEWER ;
        case ORBVersion.PEORB : return ORBVersionImpl.PEORB ;
        default : return new ORBVersionImpl(value);
    }
}
 
Example 4
Source File: ORBVersionFactory.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
private static ORBVersion byteToVersion( byte value )
{
    /* Throwing an exception here would cause this version to be
    * incompatible with future versions of the ORB, to the point
    * that this version could
    * not even unmarshal objrefs from a newer version that uses
    * extended versioning.  Therefore, we will simply treat all
    * unknown versions as the latest version.
    if (value < 0)
        throw new INTERNAL() ;
    */

    /**
     * Update: If we treat all unknown versions as the latest version
     * then when we send an IOR with a PEORB version to an ORB that
     * doesn't know the PEORB version it will treat it as whatever
     * its idea of the latest version is.  Then, if that IOR is
     * sent back to the server and compared with the original
     * the equality check will fail because the versions will be
     * different.
     *
     * Instead, just capture the version bytes.
     */

    switch (value) {
        case ORBVersion.FOREIGN : return ORBVersionImpl.FOREIGN ;
        case ORBVersion.OLD : return ORBVersionImpl.OLD ;
        case ORBVersion.NEW : return ORBVersionImpl.NEW ;
        case ORBVersion.JDK1_3_1_01: return ORBVersionImpl.JDK1_3_1_01 ;
        case ORBVersion.NEWER : return ORBVersionImpl.NEWER ;
        case ORBVersion.PEORB : return ORBVersionImpl.PEORB ;
        default : return new ORBVersionImpl(value);
    }
}
 
Example 5
Source File: ORBVersionFactory.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private static ORBVersion byteToVersion( byte value )
{
    /* Throwing an exception here would cause this version to be
    * incompatible with future versions of the ORB, to the point
    * that this version could
    * not even unmarshal objrefs from a newer version that uses
    * extended versioning.  Therefore, we will simply treat all
    * unknown versions as the latest version.
    if (value < 0)
        throw new INTERNAL() ;
    */

    /**
     * Update: If we treat all unknown versions as the latest version
     * then when we send an IOR with a PEORB version to an ORB that
     * doesn't know the PEORB version it will treat it as whatever
     * its idea of the latest version is.  Then, if that IOR is
     * sent back to the server and compared with the original
     * the equality check will fail because the versions will be
     * different.
     *
     * Instead, just capture the version bytes.
     */

    switch (value) {
        case ORBVersion.FOREIGN : return ORBVersionImpl.FOREIGN ;
        case ORBVersion.OLD : return ORBVersionImpl.OLD ;
        case ORBVersion.NEW : return ORBVersionImpl.NEW ;
        case ORBVersion.JDK1_3_1_01: return ORBVersionImpl.JDK1_3_1_01 ;
        case ORBVersion.NEWER : return ORBVersionImpl.NEWER ;
        case ORBVersion.PEORB : return ORBVersionImpl.PEORB ;
        default : return new ORBVersionImpl(value);
    }
}
 
Example 6
Source File: ORBVersionFactory.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private static ORBVersion byteToVersion( byte value )
{
    /* Throwing an exception here would cause this version to be
    * incompatible with future versions of the ORB, to the point
    * that this version could
    * not even unmarshal objrefs from a newer version that uses
    * extended versioning.  Therefore, we will simply treat all
    * unknown versions as the latest version.
    if (value < 0)
        throw new INTERNAL() ;
    */

    /**
     * Update: If we treat all unknown versions as the latest version
     * then when we send an IOR with a PEORB version to an ORB that
     * doesn't know the PEORB version it will treat it as whatever
     * its idea of the latest version is.  Then, if that IOR is
     * sent back to the server and compared with the original
     * the equality check will fail because the versions will be
     * different.
     *
     * Instead, just capture the version bytes.
     */

    switch (value) {
        case ORBVersion.FOREIGN : return ORBVersionImpl.FOREIGN ;
        case ORBVersion.OLD : return ORBVersionImpl.OLD ;
        case ORBVersion.NEW : return ORBVersionImpl.NEW ;
        case ORBVersion.JDK1_3_1_01: return ORBVersionImpl.JDK1_3_1_01 ;
        case ORBVersion.NEWER : return ORBVersionImpl.NEWER ;
        case ORBVersion.PEORB : return ORBVersionImpl.PEORB ;
        default : return new ORBVersionImpl(value);
    }
}
 
Example 7
Source File: ORBVersionFactory.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private static ORBVersion byteToVersion( byte value )
{
    /* Throwing an exception here would cause this version to be
    * incompatible with future versions of the ORB, to the point
    * that this version could
    * not even unmarshal objrefs from a newer version that uses
    * extended versioning.  Therefore, we will simply treat all
    * unknown versions as the latest version.
    if (value < 0)
        throw new INTERNAL() ;
    */

    /**
     * Update: If we treat all unknown versions as the latest version
     * then when we send an IOR with a PEORB version to an ORB that
     * doesn't know the PEORB version it will treat it as whatever
     * its idea of the latest version is.  Then, if that IOR is
     * sent back to the server and compared with the original
     * the equality check will fail because the versions will be
     * different.
     *
     * Instead, just capture the version bytes.
     */

    switch (value) {
        case ORBVersion.FOREIGN : return ORBVersionImpl.FOREIGN ;
        case ORBVersion.OLD : return ORBVersionImpl.OLD ;
        case ORBVersion.NEW : return ORBVersionImpl.NEW ;
        case ORBVersion.JDK1_3_1_01: return ORBVersionImpl.JDK1_3_1_01 ;
        case ORBVersion.NEWER : return ORBVersionImpl.NEWER ;
        case ORBVersion.PEORB : return ORBVersionImpl.PEORB ;
        default : return new ORBVersionImpl(value);
    }
}
 
Example 8
Source File: ORBVersionFactory.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private static ORBVersion byteToVersion( byte value )
{
    /* Throwing an exception here would cause this version to be
    * incompatible with future versions of the ORB, to the point
    * that this version could
    * not even unmarshal objrefs from a newer version that uses
    * extended versioning.  Therefore, we will simply treat all
    * unknown versions as the latest version.
    if (value < 0)
        throw new INTERNAL() ;
    */

    /**
     * Update: If we treat all unknown versions as the latest version
     * then when we send an IOR with a PEORB version to an ORB that
     * doesn't know the PEORB version it will treat it as whatever
     * its idea of the latest version is.  Then, if that IOR is
     * sent back to the server and compared with the original
     * the equality check will fail because the versions will be
     * different.
     *
     * Instead, just capture the version bytes.
     */

    switch (value) {
        case ORBVersion.FOREIGN : return ORBVersionImpl.FOREIGN ;
        case ORBVersion.OLD : return ORBVersionImpl.OLD ;
        case ORBVersion.NEW : return ORBVersionImpl.NEW ;
        case ORBVersion.JDK1_3_1_01: return ORBVersionImpl.JDK1_3_1_01 ;
        case ORBVersion.NEWER : return ORBVersionImpl.NEWER ;
        case ORBVersion.PEORB : return ORBVersionImpl.PEORB ;
        default : return new ORBVersionImpl(value);
    }
}
 
Example 9
Source File: ORBVersionFactory.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private static ORBVersion byteToVersion( byte value )
{
    /* Throwing an exception here would cause this version to be
    * incompatible with future versions of the ORB, to the point
    * that this version could
    * not even unmarshal objrefs from a newer version that uses
    * extended versioning.  Therefore, we will simply treat all
    * unknown versions as the latest version.
    if (value < 0)
        throw new INTERNAL() ;
    */

    /**
     * Update: If we treat all unknown versions as the latest version
     * then when we send an IOR with a PEORB version to an ORB that
     * doesn't know the PEORB version it will treat it as whatever
     * its idea of the latest version is.  Then, if that IOR is
     * sent back to the server and compared with the original
     * the equality check will fail because the versions will be
     * different.
     *
     * Instead, just capture the version bytes.
     */

    switch (value) {
        case ORBVersion.FOREIGN : return ORBVersionImpl.FOREIGN ;
        case ORBVersion.OLD : return ORBVersionImpl.OLD ;
        case ORBVersion.NEW : return ORBVersionImpl.NEW ;
        case ORBVersion.JDK1_3_1_01: return ORBVersionImpl.JDK1_3_1_01 ;
        case ORBVersion.NEWER : return ORBVersionImpl.NEWER ;
        case ORBVersion.PEORB : return ORBVersionImpl.PEORB ;
        default : return new ORBVersionImpl(value);
    }
}
 
Example 10
Source File: ORBVersionFactory.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private static ORBVersion byteToVersion( byte value )
{
    /* Throwing an exception here would cause this version to be
    * incompatible with future versions of the ORB, to the point
    * that this version could
    * not even unmarshal objrefs from a newer version that uses
    * extended versioning.  Therefore, we will simply treat all
    * unknown versions as the latest version.
    if (value < 0)
        throw new INTERNAL() ;
    */

    /**
     * Update: If we treat all unknown versions as the latest version
     * then when we send an IOR with a PEORB version to an ORB that
     * doesn't know the PEORB version it will treat it as whatever
     * its idea of the latest version is.  Then, if that IOR is
     * sent back to the server and compared with the original
     * the equality check will fail because the versions will be
     * different.
     *
     * Instead, just capture the version bytes.
     */

    switch (value) {
        case ORBVersion.FOREIGN : return ORBVersionImpl.FOREIGN ;
        case ORBVersion.OLD : return ORBVersionImpl.OLD ;
        case ORBVersion.NEW : return ORBVersionImpl.NEW ;
        case ORBVersion.JDK1_3_1_01: return ORBVersionImpl.JDK1_3_1_01 ;
        case ORBVersion.NEWER : return ORBVersionImpl.NEWER ;
        case ORBVersion.PEORB : return ORBVersionImpl.PEORB ;
        default : return new ORBVersionImpl(value);
    }
}