vancetang / reflections

Automatically exported from code.google.com/p/reflections

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Classpath helper fails with default package

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. Call org.reflections.util.ClasspathHelper.forClass() with a class which is 
located in the default package.

What is the expected output? What do you see instead?

Expected output is the URL to the class passed as argument.
The following exception occurs:
Exception in thread "main" java.lang.NullPointerException
at org.reflections.util.ClasspathHelper.forClass(ClasspathHelper.java:90)

What version of the product are you using? On what operating system?

0.9.9-RC1, pulled from Maven, on Windws 7 64 bit with Oracle JDK 1.8

Original issue reported on code.google.com by martin.d...@web.de on 8 Oct 2014 at 10:28