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

Bug fix for CR 6893109/7 (jdk7/tl_pit/b121) missed one line of code.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 7
    • other-libs
    • None
    • generic
    • generic

      Looking at webrev for the bug fix of http://monaco.sfbay.sun.com/detail.jsf?cr=6893109/7 http://javaweb.sfbay/jcg/ws-depot/7/tl/nb/archived/2010-11-30-230919.ss145989.tl-pit-2d-awt-swing/logs/webrev/corba/src/share/classes/com/sun/tools/corba/se/idl/toJavaPortable/Stub.java.udiff.html

      The line define delegate is missed:
      - stream.println (" org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();");

      which effectively causes compliation error:
       cannot find symbol for delegate.

      See below:
      gtee@jsn-sb2500-1: /tmp/idlj $ cat Example.idl
      interface Example
      {
      };
      gtee@jsn-sb2500-1: /tmp/idlj $ # FAIL with jdk7/tl_pit/b121 /net/jano1.sfbay/export1/jcg/ws-depot/7/tl/nb/archived/2010-11-30-230919.ss145989.tl-pit-2d-awt-swing/solaris_sparc/bin/idlj Example.idl
      gtee@jsn-sb2500-1: /tmp/idlj $ /net/jano1.sfbay/export1/jcg/ws-depot/7/tl/nb/archived/2010-11-30-230919.ss145989.tl-pit-2d-awt-swing/solaris_sparc/bin/javac *.java
      _ExampleStub.java:29: cannot find symbol
           _set_delegate (delegate);
                          ^
        symbol: variable delegate
        location: class _ExampleStub
      1 error
      # OK with jdk7/promotion/b120
      gtee@jsn-sb2500-1: /tmp/idlj $ /net/koori.sfbay/onestop/jdk/7/promoted/all/b120/binaries/solaris-sparc/bin/idlj Example.idl
      gtee@jsn-sb2500-1: /tmp/idlj $ /net/koori.sfbay/onestop/jdk/7/promoted/all/b120/binaries/solaris-sparc/bin/javac *.java

            Unassigned Unassigned
            stephenh Stephen Hu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: