rachavz / reflections

Automatically exported from code.google.com/p/reflections
Do What The F*ck You Want To Public License
0 stars 0 forks source link

getSubTypesOf() finding classes that don't actually exist. #172

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile and run this code https://github.com/FoxDev/FoxBot
2. Watch the startup log for lines containing listener/command registrations.
3. Delete any command class or listener from the source.
4. Recompile without the deleted command/listener and run again while watching 
the startup log.

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

I expect to see 2 listener classes being registered. UserListener and 
MessageListener. Instead, I see those two, plus SpamHandler. The problem is, 
SpamHandler.java doesn't exist in that code and hasn't for months as you can 
see from commit history. The same also applies to a lot of the classes that 
extend Command.java. It seems reflections is somehow remembering classes that 
used to exist, but don't any more.

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

0.9.9-RC1 on Arch Linux 64 bit.

Please provide any additional information below.

The relevant lines in my code can be found here: 
https://github.com/FoxDev/FoxBot/blob/master/src/main/java/co/foxdev/foxbot/FoxB
ot.java#L180

The relevant classes are here 
https://github.com/FoxDev/FoxBot/tree/master/src/main/java/co/foxdev/foxbo/liste
ners 
and here 
https://github.com/FoxDev/FoxBot/tree/master/src/main/java/co/foxdev/foxbot/comm
ands

Original issue reported on code.google.com by TheRever...@gmail.com on 20 Apr 2014 at 12:05

GoogleCodeExporter commented 9 years ago
Aaaaaand it was a problem with our Jenkins instance...

Original comment by TheRever...@gmail.com on 20 Apr 2014 at 12:22

GoogleCodeExporter commented 9 years ago

Original comment by ronm...@gmail.com on 30 Apr 2014 at 9:41