I2JAV 1.1 NO IDEA Avatar
  1. OMG Issue

I2JAV11 — Java language mapping: Tie classes for local interfaces.

  • Key: I2JAV11-19
  • Legacy Issue Number: 3320
  • Status: closed  
  • Source: ICL ( Chris Wood)
  • Summary:

    The new java mapping as specified in 99-10-10 for local classes generates a
    class which is subclassed much as previous implementations subclassed the
    POA class.

    ie:

    local interface Test

    { void call(); }

    ;

    maps to:

    class Test extends org.omg.CORBA.portable.LocalImpl implements
    TestOperations {}

    then implementers subclass Test to get desired functionality.

    I believe there is a need for a tie class similar to the POATie class:

    class TestTie extends Test {
    public TestTie(TestOperations delegate)

    { _delegate = delegate; }

    private TestOperations _delegate;

    public void call()

    { _delegate.call(); }

    }

    Also the implementation for _hash is not correct :

    public int _hash(int max)

    { // return hashCode(); // incorrect, return value exceeds max. return hashCode() % (max+1); }
  • Reported: I2JAV 1.0 — Wed, 16 Feb 2000 05:00 GMT
  • Disposition: Resolved — I2JAV 1.1
  • Disposition Summary:

    Incorporate revised text and close issue

  • Updated: Fri, 6 Mar 2015 20:58 GMT