[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-discuss
Subject:    Symbol ``['' and a java.net.URI.create method
From:       Alan.Bateman () Sun ! COM (Alan Bateman)
Date:       2008-04-29 16:15:33
Message-ID: 481749A5.7000606 () sun ! com
[Download RAW message or body]

Michal Vyskocil wrote:
> Hi all,
>
> I'm working on adopting of jpackage project to openSUSE and got a problem with 
> build of maven. The jpackage's folks have a script build-jar-repository, 
> which symlinks the jar files in /usr/share/java to defined dir.
>
> My problem is, that the script produces a links in this 
> form - /foo/bar/[ant].jar which later causes an IllegalArgumentException, 
> because a java.net.URI.create dissallows ``[]'' in URI. The response from 
> jpackage is, that java.net.URI.create has a bug, because symbol ``['' is 
> valid in a Unix path.
>
>
> I'm testing several JRE implementations, but only gcj allows the ``[]'' in 
> URI, other ones not.
>
> What do you think about? Is this really a bug in handling of unix filenames?
>
>   
Rather than a java.net.URI bug, this is probably because the script or 
whatever that produces the URI isn't escaping the reserved characters 
([] should be escaped to %5B%5D in this case). The best place to have 
further discussion about the URI class is the net-dev mailing list [1].

-Alan.

[1] net-dev at openjdk.java.net



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic