- 
    Bug 
- 
    Resolution: Fixed
- 
     P3 P3
- 
    1.4.0
- 
        beta3
- 
        generic
- 
        generic
- 
        Verified
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-2046215 | 1.4.0 | Everett Anderson | P3 | Closed | Won't Fix | 
                    When not using a POA, the server ORB knows what type of servant it is publishing
an IOR for, and can thus figure out the codebase and put it in as a
TAG_JAVA_CODEBASE component.
Currently, a bug prevents this from happening:
com.sun.corba.se.internal.corba.ServerDelegate
createObjref(byte[], Object servant)
needs to pass the servant into the IOR constructor.
Change
IOR ior = new IOR( orb, id, host, port, okey ) ;
to
IOR ior = new IOR( orb, id, host, port, okey, servant ) ;
Fixing this allows clients to download stub code.
Unfortunately, there are some holes in the Java to IDL spec when using a POA
which prevent knowing the servant type at IOR construction time.
The repository ID is known, so it might be possible to include a codebase
derived from it in the IOR, though that creates a problem with PI. This more elaborate case will require spec work, and is addressed
by bug 4427857.
******************************************************************************
###@###.### 2001-09-28
Fix verified OK.
- With build : j2sdk-1_4_0-beta3-bin-b81-solsparc-27_sep_2001
- With test : tests/product/rmi-iiop/AutoDownloading
******************************************************************************
            
an IOR for, and can thus figure out the codebase and put it in as a
TAG_JAVA_CODEBASE component.
Currently, a bug prevents this from happening:
com.sun.corba.se.internal.corba.ServerDelegate
createObjref(byte[], Object servant)
needs to pass the servant into the IOR constructor.
Change
IOR ior = new IOR( orb, id, host, port, okey ) ;
to
IOR ior = new IOR( orb, id, host, port, okey, servant ) ;
Fixing this allows clients to download stub code.
Unfortunately, there are some holes in the Java to IDL spec when using a POA
which prevent knowing the servant type at IOR construction time.
The repository ID is known, so it might be possible to include a codebase
derived from it in the IOR, though that creates a problem with PI. This more elaborate case will require spec work, and is addressed
by bug 4427857.
******************************************************************************
###@###.### 2001-09-28
Fix verified OK.
- With build : j2sdk-1_4_0-beta3-bin-b81-solsparc-27_sep_2001
- With test : tests/product/rmi-iiop/AutoDownloading
******************************************************************************
- backported by
- 
                    JDK-2046215 RMI-IIOP without POA stub downloading broken (no codebase in IOR) -           
- Closed
 
-         
- relates to
- 
                    JDK-4501598 Valuetype Impl downloading in Javaidl case is broken -           
- Closed
 
-         
- 
                    JDK-4427857 Code downloading with POA requires downloader to know codebase -           
- Closed
 
-