Are you messing with your bootstrap class path?
Because the only way getClass().getClassLoader() returns null is if the class was loaded from the bootstrap class path, which should not be the case here.

On 2014-04-29 09:54, PN wrote:

which is the following code:

     private void testClasspath() throws IOException {
         String resource = "org/h2/test/testSimple.in.txt";
         InputStream in;
         in = getClass().getResourceAsStream("/" + resource);
         assertTrue(in != null);
         in.close();
         in = getClass().getClassLoader().getResourceAsStream(resource);  // 
line 220


--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to