nkxiaochuan / powermock

Automatically exported from code.google.com/p/powermock
Apache License 2.0
1 stars 0 forks source link

TooManyMethodsFoundException which I don't understand #528

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I can't get rid of an TooManyMethodsFoundException. I linked example code which 
shall help understand my issue.

What steps will reproduce the problem?
1. Get the sample code and run the ABCTest.java (put all classes simply in the 
same package)
2. Use PowerMock 1.5.2. and JDK 1.7.0_72

What is the expected output? What do you see instead?
Expected: No Exception
Result instead: TooManyMethodsFoundException

What version of the product are you using? On what operating system?
PowerMock 1.5.2. and JDK 1.7.0_72
Windows 8.1 Pro

Please provide any additional information below.
There is something strange: If you REMOVE both the parameter BigDecimal number 
and Serilizable value in all 4 Classes, there won't come up an exception! Why?

I would not be surprised if this is actually no bug, but I could not find a 
solution at Google so far :( And as stated above it is weird for me that it 
works without parameters, but using them causes an exception.

Thanks in advance

Original issue reported on code.google.com by xmarcus89@googlemail.com on 1 Dec 2014 at 12:53

Attachments: