problem with Class#getResource

2016-09-04 Thread Jochen Theodorou
Hi all, I am using build 9-ea+132 I have a test, that does in the setup this.class.getResource("/jars"), to get a URL to the jars directory. The parent directory is on the classpath, but the call returns null... This code is not run in a named module. Can anyone tell me why that returns nu

RE: problem with Class#getResource

2016-09-04 Thread Uwe Schindler
implementation detail that it works at all. :-) Uwe - Uwe Schindler uschind...@apache.org ASF Member, Apache Lucene PMC / Committer Bremen, Germany http://lucene.apache.org/ > Sent: Sunday, September 4, 2016 3:36 PM > To: jigsaw-dev@openjdk.java.net > Subject: problem with Class

Re: problem with Class#getResource

2016-09-04 Thread Dawid Weiss
; http://lucene.apache.org/ >> Sent: Sunday, September 4, 2016 3:36 PM >> To: jigsaw-dev@openjdk.java.net >> Subject: problem with Class#getResource >> >> Hi all, >> >> >> I am using build 9-ea+132 >> >> I have a test, that does in the setup this.cl

Re: problem with Class#getResource

2016-09-04 Thread Alan Bateman
On 04/09/2016 14:35, Jochen Theodorou wrote: Hi all, I am using build 9-ea+132 I have a test, that does in the setup this.class.getResource("/jars"), to get a URL to the jars directory. The parent directory is on the classpath, but the call returns null... This code is not run in a named m

Re: problem with Class#getResource

2016-09-04 Thread Jochen Theodorou
@apache.org ASF Member, Apache Lucene PMC / Committer Bremen, Germany http://lucene.apache.org/ Sent: Sunday, September 4, 2016 3:36 PM To: jigsaw-dev@openjdk.java.net Subject: problem with Class#getResource Hi all, I am using build 9-ea+132 I have a test, that does in the setup this.class.get

Re: problem with Class#getResource

2016-09-05 Thread Alan Bateman
On 04/09/2016 22:33, Jochen Theodorou wrote: hmmm... makes a sad sense to me. Though it seems to extend to ClassLoader#getResources(). That canĀ“t be because of multi-release JAR files, can it? I can't think how the MR JARs could be an issue here. Do you think you could distill this down t

Re: problem with Class#getResource

2016-09-05 Thread Jochen Theodorou
On 04.09.2016 22:05, Alan Bateman wrote: On 04/09/2016 14:35, Jochen Theodorou wrote: Hi all, I am using build 9-ea+132 I have a test, that does in the setup this.class.getResource("/jars"), to get a URL to the jars directory. The parent directory is on the classpath, but the call returns n

Re: problem with Class#getResource

2016-09-05 Thread Jochen Theodorou
On 05.09.2016 15:15, Jochen Theodorou wrote: On 04.09.2016 22:05, Alan Bateman wrote: On 04/09/2016 14:35, Jochen Theodorou wrote: Hi all, I am using build 9-ea+132 I have a test, that does in the setup this.class.getResource("/jars"), to get a URL to the jars directory. The parent directo

Re: problem with Class#getResource

2016-09-05 Thread Alan Bateman
On 05/09/2016 15:50, Jochen Theodorou wrote: getResource did not get caller sensitive, right? The Class getResource/getResourceAsStream methods are but this is only relevant if you are invoke them on classes in named modules. This is why I was asking what "this.class" was in the previous mail

Re: problem with Class#getResource

2016-09-06 Thread Jochen Theodorou
On 05.09.2016 17:00, Alan Bateman wrote: On 05/09/2016 15:50, Jochen Theodorou wrote: getResource did not get caller sensitive, right? The Class getResource/getResourceAsStream methods are but this is only relevant if you are invoke them on classes in named modules. This is why I was asking w