nikgoodley-ibboost / funcito

Automatically exported from code.google.com/p/funcito
0 stars 0 forks source link

Need test for wrapping methods on custom Enum classes #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I just ran into a problem using an old version of Funcito stubbing a method on 
an Enum.  It may simply be the fact that I was using code that was 
pre-Objenesis/CglibImposterizer, because it was failing while trying to find an 
appropriate constructor using my original ctor-searching code.

There should also be a comparable test for Javassist.

Test results will determine whether or not this is actually a defect, a 
limitation of bytecode enhancement, or just old code.

Original issue reported on code.google.com by kandpwel...@gmail.com on 7 Dec 2011 at 8:12

GoogleCodeExporter commented 9 years ago
As I thought, Enums cannot be imposterised by either codegen framework because 
Enums are implicitly final classes

Original comment by kandpwel...@gmail.com on 8 Dec 2011 at 5:27

GoogleCodeExporter commented 9 years ago
closing

Original comment by kandpwel...@gmail.com on 12 Dec 2011 at 6:57