Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4514745
Votes 2
Synopsis No org.omg.POAHelper class in JDK 1.4 beta 2.
Category idl:poa
Reported Against merlin-beta2 , merlin-beta3
Release Fixed merlin-beta3
State 11-Closed, Verified, request for enhancement
Priority: 3-Medium
Related Bugs 4520479
Submit Date 15-OCT-2001
Description




java version "1.4.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)

There is no org.omg.POAHelper class in JDK 1.4 beta2.
According to OMG CORBA 2.3.1 the correct way to get POA is to use POAHelper
class:
org.omg.CORBA.Object poaObj = orb.resolve_initial_references("RootPOA");
org.omg.PortableServer.POA rootPoa = org.omg.PortableServer.POAHelper.narrow
(poaObj);
(Review ID: 133640) 
======================================================================

********************************************************************************
  xxxxx@xxxxx   2001-11-28

Fix verified ok
- With build: j2sdk-1_4_0-rc-bin-b88-solsparc-28_nov_2001
- With test: /java/idl/ws/rip/RIP_TEST_MASTER/tests/api/poa/poa/createpoa
********************************************************************************
Work Around




Just cast the object returned by "resolve_initial references" call.
org.omg.PortableServer.POA rootPoa = (POA)orb.resolve_initial_references
("RootPOA");
======================================================================
Evaluation
Will try to fix it for J2SE 1.4 as this is required by OMG. If we do not ship in J2SE 1.4 then it may create backward compatibility headache's going forward to J2SE 1.5.


  xxxxx@xxxxx   2001-10-23
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang