Bob Scheifler wrote:
Mark Brouwer wrote:
Therefore I would like to change my current semantics and use as the
first argument a String representing the codebase instead of an array of
URLs. This means that the current implementation likely has to parse
that string into an array of URLs but there is already a cache for that
(URL[] pathToURLs(String)).
Since it's a protected method, why not pass in both?
Looking at the specs for RMIClassLoader and RMIClassLoaderSpi I'm of the
opinion that codebase as String is the real discriminator here for
making decisions and that the usage of URL (instead of URI) in some of
the language is an unfortunate choice and I would rather steer away from
it than exposing it even more in the public API.
But I also believe that given previous discussions you are not going to
give me a high five for saying this, so if this satisfies everybody here
I'm totally fine with it.
--
Mark