CORBA の互換性情報 - J2SE 5.0

J2SE 1.3 と J2SE 5.0 の間での CORBA API の変更

このドキュメントでは、CORBA の機能に関連して JDK 1.3 と 5.0 の間で変更されたすべての API について情報を提供します。この変更は、JDK 5.0 に組み込まれる CORBA 技術用の API を、次に示す OMG ドキュメントに規定されている CORBA 2.3 マッピングに準拠させるために行われたものです。


org.omg.COSNaming クラスでの API の変更

CORBA バージョン 2.3 仕様で規定されている IDL から Java へのマッピングに準拠するため、次に示す org.omg.COSNaming クラスを、JDK に同梱されている idlj コンパイラで再生成しました。この変更 (CCC 4284015) には、次のような API の変更が含まれます。互換性への影響: なし。

  1. CORBA V (2.3) のセクション 1.5.2 にあるすべての Helper に関する仕様 (ptc/00-01-08.pdf) に準拠するため、Helper はすべて abstract public クラスになりました。次に、org.omg.CosNaming に属するクラスで abstract public クラスに変更されたすべての Helper クラスを示します。

    セクション 1.7 にある OMG 仕様 (ptc/00-01-08.pdf) の「Mapping for Enum」に準拠するため、次に示す Enum コンストラクタのマッピングが protected に変更されました。

    CLASS BEFORE 変更後
    BindingType.java private BindingType(int) protected BindingType(int)
    NotFoundReason.java private NotFoundReason(int) protected NotFoundReason(int)
  2. CORBA 2.3 仕様 (ptc/00-01-08.pdf) の「Deletion of constructors in Stub classes」に準拠するため、次に示すコンストラクタが削除されました。

    CLASS BEFORE 変更後
    _BindingIteratorStub.java public _BindingIteratorStub(org.omg.CORBA.portable.Delegate d) このコンストラクタは削除。
    _NamingContextStub.java public _NamingContextStub(org.omg.CORBA.portable.Delegate d) このコンストラクタは削除。
  3. CORBA 2.3 仕様 (ptc/00-01-08.pdf) に準拠するため、次に示す例外が変更されました。

    CLASS BEFORE 変更後
    AlreadyBound.java public final class AlreadyBound extends org.omg.CORBA.UserException implements org.omg.CORBA.portable.IDLEntity public final class AlreadyBound extends org.omg.CORBA.UserException
    AlreadyBound.java デフォルトコンストラクタのみ 新しいコンストラクタ public AlreadyBound (String reason) を追加
    CannotProceed.java public final class CannotProceed extends org.omg.CORBA.UserException implements org.omg.CORBA.portable.IDLEntity public final class CannotProceed extends org.omg.CORBA.UserException
    CannotProceed.java デフォルトコンストラクタのみ  新しいコンストラクタ public CannotProceed (String reason) を追加
    InvalidName.java public final class InvalidName extends org.omg.CORBA.UserException implements org.omg.CORBA.portable.IDLEntity public final class InvalidName extends org.omg.CORBA.UserException
    InvalidName.java デフォルトコンストラクタのみ 新しいコンストラクタ public InvalidName (String reason) を追加
    NotEmpty.java public final class NotEmpty extends org.omg.CORBA.UserException implements org.omg.CORBA.portable.IDLEntity public final class NotEmpty extends org.omg.CORBA.UserException
    NotEmpty.java デフォルトコンストラクタのみ 新しいコンストラクタ public NotEmpty (String reason) を追加
    NotFound.java public final class NotFound extends org.omg.CORBA.UserException implements org.omg.CORBA.portable.IDLEntity public final class NotFound extends org.omg.CORBA.UserException
    NotFound.java デフォルトコンストラクタのみ 新しいコンストラクタ public NotFound (String, org.omg.CosNaming.NamingContextPackage.NotFoundReason, org.omg.CosNaming.NameComponent[]) を追加
  4. CORBA 2.3 仕様に準拠するため、次に示すクラスが追加されました。

  5. CORBA 2.3 仕様に準拠するため、次に示すクラスが非推奨になりました。


org.omg.CORBA クラスでの API の変更


javax.rmi.CORBA クラスでの API の変更

OMG の API 仕様に準拠するため、javax.rmi.CORBA に次のような変更を加えました。

API 以外の変更

JDK 5.0 には、次のような API 以外の変更も実装されています。

新規 API

JDK 5.0 には、次のような新しい API が追加されました。

J2SE 5.0 での CORBA サポートの公式仕様

仕様の参照

Java 2 Platform Standard Edition (J2SE) 5.0 ORB のコンパイル時に適用される仕様は次のとおりです。これらのリンクから正しい仕様を参照できない場合は、OMG が URL を変更した可能性があるので、正しい仕様を検索するために www.omg.org にリンクしてかまいません。 上記に記載したのは、このドキュメントで参照されている仕様だけです。

サポートされている仕様の詳細

J2SE 5.0 の ORB では、現在のところ、上記の仕様のすべてが実装されているわけではありません。サポートされているセクションは次のとおりです。

ツール




その他の互換性情報


Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.
連絡先