On Wed, Nov 20, 2019 at 9:26 AM Scott Palmer <swpal...@gmail.com> wrote:
>
> /C:/blah... is “root relative”. The (old) spec says the URL must be "relative 
> to the code base".  What does "code base" mean when not referring to Applets 
> or RMI?

"code base" is generally the URL of the class path entry itself.  It's
mainly defined in the specification for java.lang.ClassLoader.

> This seems like a bad idea (security hole) that worked by accident.

The specification is pretty clear, and doesn't seem unintentional.
Relative URLs have a very specific normative definition.  It's very
unambiguous; the code just doesn't work the way the specification says
it should.

-- 
- DML

Reply via email to