Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4378238

Sources for org.omg.CORBA.PolicyError do not match .class-files

XMLWordPrintable

    • merlin
    • sparc
    • solaris_2.6



      Name: ooR10001 Date: 10/11/2000


      Source files for org.omg.CORBA.PolicyError do not match for .class files in
      rt.jar in jdk version 1.4 build 1.4.0beta-b35.
      This needs to be fixed.

      Source for PolicyError.java
      ---------------------------
      .....
      public final class PolicyError extends org.omg.CORBA.UserException {

          /**
           * The reason for the <code>PolicyError</codeexception being thrown.
           * @serial
           */
          public short reason;
      ......
      ----------------------------

      Output for command 'javap -private org.omg.CORBA.PolicyError':
      ----------------------------
      Compiled from PolicyError.java
      public final class org.omg.CORBA.PolicyError extends org.omg.CORBA.UserException
      {
          public short errcode;
          public org.omg.CORBA.PolicyError();
          public org.omg.CORBA.PolicyError(short);
          public org.omg.CORBA.PolicyError(java.lang.String,short);
      }
      -----------------------------

      In source we see that class contains field 'reason', but .class file contains
      field 'errcode' for the same class. This not approved incompatible class change
      needs corresponding CCC requsest.

      Jusification:
      This JCK API tests are failre:
      api/org_omg/CORBA/PolicyError/serial/index.html#Constructor
      api/org_omg/CORBA/PolicyError/serial/index.html#Input
      ======================================================================

            hputtaswsunw Hemanth Puttaswamy (Inactive)
            oovsunw Oov Oov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: