What steps will reproduce the problem?
1. Have following powermock code
Console console=createMock(Console.class);
What is the expected output? What do you see instead?
It compile ok under 1.3.9, Get following error on 1.4.0
java.lang.RuntimeException: javassist.CannotCompileException: by
javassist.CannotCompileException: no inheritable constructor in
java.lang.Appendable
at
org.powermock.core.ConcreteClassGenerator.createConcreteSubClass(ConcreteClassGe
nerator.java:
63)
at
org.powermock.core.DefaultFieldValueGenerator.instantiateFieldType(DefaultFieldV
alueGenerator.java:
56)
at
org.powermock.core.DefaultFieldValueGenerator.fillWithDefaultValues(DefaultField
ValueGenerator.java:
38)
at
org.powermock.core.DefaultFieldValueGenerator.fillWithDefaultValues(DefaultField
ValueGenerator.java:
39)
at
org.powermock.core.DefaultFieldValueGenerator.fillWithDefaultValues(DefaultField
ValueGenerator.java:
39)
at org.powermock.api.easymock.PowerMock.doMock(PowerMock.java:2146)
at org.powermock.api.easymock.PowerMock.createMock(PowerMock.java:98)
What version of the product are you using? On what operating system?
Powermock 1.4 under Windows XP.
Please provide any additional information below.
Original issue reported on code.google.com by chiiwen@gmail.com on 12 Aug 2010 at 10:44
Original issue reported on code.google.com by
chiiwen@gmail.com
on 12 Aug 2010 at 10:44