classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] java.rmi.Naming fix (inc. GCC PR#11900)


From: Andrew John Hughes
Subject: [cp-patches] java.rmi.Naming fix (inc. GCC PR#11900)
Date: Sat, 16 Apr 2005 16:44:12 +0100
User-agent: Mutt/1.5.6+20040907i

I'm committing the attached patch to fix the resolution of URLs
within java.rmi.Naming.  For one thing, this allows the case shown
in GCC PR#11900:

Naming.rebind("rmi://127.0.0.1:1099/CalculatorService", c);

to function correctly.  The URL is also now interpreted in a common way
by all methods (before, this would work with bind() but not rebind()
for example).

Changelog:

2005-04-16  Andrew John Hughes  <address@hidden>

        * java/rmi/Naming.java:
        Added class documentation.
        (lookup(String)): Call parseURL and getName.
        (bind(String,java.rmi.Remote)): Likewise.
        (unbind(String)): Likewise.
        (rebind(String, java.rmi.Remote)): Likewise.
        (list(String)): Call parseURL.
        (parseURL(String)): New method to handle parsing and defaults.
        (getName(java.net.URL)): New method to handle finding the service name.

-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

No software patents in Europe -- http://nosoftwarepatents.com

"Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn." 
-- Richard Stallman

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }

Attachment: rmi-01.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]