sta-szek / pojo-tester

Java testing framework for testing pojo methods. It tests equals, hashCode, toString, getters, setters, constructors and whatever you report in issues ;)
http://www.pojo.pl
GNU Lesser General Public License v3.0
53 stars 26 forks source link

DefaultPackageFilter should only consider .class files #246

Open p91paul opened 4 years ago

p91paul commented 4 years ago

Classpath may contain files with extensions which are not .class. For example my classpath contains .xml files (because MyBatis).

Currently ReflectionUtils.removeClassSuffix is called, that removes the .class suffix; however it should filter to consider .class files only before doing that.

Right now my.package.File.xml becomes my.package.Fi and that triggers an error when Class.forName is called on it.