tiebin-zhang / powermock

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

Strange Console behavior on Powermock 1.4 #272

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Is this the standard Console class from Java 6?

Original comment by johan.ha...@gmail.com on 13 Aug 2010 at 1:20

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 23 Aug 2010 at 7:15