RFR 9: [testbug] 8168613 : CORBA ObjectStreamTest fails with address in use
Paul Sandoz
paul.sandoz at oracle.com
Tue Oct 25 20:31:55 UTC 2016
Hi Roger,
Do you need to use a double-checked locking idiom in getEchoStub?
I cannot recall the life-cycle of per test execution, but i suspect you might be able to turn the static field and method getEchoStub into a non-static field and just make the method synchronized, but you might ned to annotate the shutdown with @AfterClass instead.
Actually, perhaps even better initiate the ORB and create the stub in a @BeforeClass method and clean up in a @AfterClass method?
Paul.
> On 25 Oct 2016, at 12:51, Roger Riggs <Roger.Riggs at Oracle.com> wrote:
>
> Please review a test fix for an address-in-use problem in this CORBA serialization test.
> The test is simplified to just communicate client to server via the orb in the process.
>
> It does not need activation, a name service, or the orbd to exercise the
> necessary serialization implementation. And therefore, no contention for sockets, ports, etc.
>
> Webrev:
> http://cr.openjdk.java.net/~rriggs/webrev-orb-addrinuse-8168613/
>
> Thanks, Roger
>
More information about the core-libs-dev
mailing list