dhamini-poornachandra / mockito

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

fix performance bottleneck at CGLIBHacker.setMockitoNamingPolicy() #377

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
See the discussion here (the discussion is about a different topic but you'll 
find the reference to CGLIBHacker soon enough :),

https://groups.google.com/forum/#!msg/mockito/-TAzIu2eA8Y/iV8Zv5rH8n8J

One potential fix is to make the field configurable via public api in cglib so 
that we don't have to use reflection.

Original issue reported on code.google.com by szcze...@gmail.com on 16 Sep 2012 at 2:05

GoogleCodeExporter commented 8 years ago
making it public could be interesting, however we should be careful, this 
should be documented as it might be troublesome to update the cglib code then.

Also CGLIB 2.2.3 is out in the wild.

Original comment by brice.du...@gmail.com on 16 Sep 2012 at 2:48

GoogleCodeExporter commented 8 years ago
Yeah, maybe we need to find a better way :)

Original comment by szcze...@gmail.com on 16 Sep 2012 at 10:04