Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

ClassFinder only finding one class #8

marcusatbang opened this Issue Sep 2, 2011 · 3 comments


None yet
2 participants

I'm using a ClassFinder like so:

val file = new File("target/scala-2.8.1.final/test-classes")
val finder = ClassFinder(List(file))
for (c <- finder.getClasses) println(c.name)

There are 288 classes in that folder (many of them anonymous classes or companion objects rather than classes), but only one of them is being printed:


I've checked that the classpath is the right folder. I can't see anything about the one class it prints to make it stand out: it's not the first, it's not a container of the others. It's a companion object like dozens of other classes in the folder.

Am I doing it wrong?


bmc commented Sep 2, 2011

Thanks. I've reproduced the problem here. I'll look into it.

bmc added a commit that referenced this issue Sep 2, 2011

- Fixed issue #8: ClassFinder only finding one class. Problem was in the
  generator/iterator in the private processDirectory() method used by
- Added a specific unit test for ClassFinder.getClasses().

bmc commented Sep 2, 2011

Fixed in version 0.4.3, just posted.

@bmc bmc closed this Sep 2, 2011

Fix confirmed. That was pretty quick, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment