Request for review: always generate java-rmi.cgi

Alan Bateman Alan.Bateman at oracle.com
Wed May 11 17:47:16 UTC 2011


Kelly O'Hair wrote:
> I found this bug:
>   http://bugs.sun.com/view_bug.do?bug_id=4495986
>
> Which seems to imply that maybe this java-rmi.cgi file doesn't belong in the "bin" directory at all?
>
> But it also seems to me that the current:
>   91 ifneq ($(ARCH_DATA_MODEL), 32)
>   92 build: stubs
>   93 else # ARCH_DATA_MODEL
>   94 build: stubs bin
>   95 endif
>
> Should have been:
>   91 ifneq ($(PLATFORM)-$(ARCH_DATA_MODEL), solaris-32)
>   92 build: stubs
>   93 else # ARCH_DATA_MODEL
>   94 build: stubs bin
>   95 endif
>
> Only Solaris does the 32bit and 64bit builds in a way that demonstrated the original issue for 4495986.
>
> So my question is? Well questions are...
>
> Q1: What the heck is java-rmi.cgi and what is it used for?
>
> Q2: Does it belong somewhere other than the bin directory?
>
>   
The script can be used to tunnel RMI calls over HTTP. Probably legacy 
now and I'm pretty sure that java-rmi.cgi is just meant to be an example 
script. The RMI FAQ provides servlet based example. I've cc'ed Peter 
Jones and he might be able to fill us in a bit on the history and 
whether it really needs to be in the bin directory (I suspect not).

-Alan.




More information about the build-dev mailing list