Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
java-chassis-1.2.1
-
None
Description
I found a problem using org.apache.servicecomb.foundation.common.utils.BeanUtils#getImplClassFromBean. If the @param bean is a cgLib proxy subclass bean, the getImplClassFromBean method will return null instead of super class which is expected. To make the issure more clearly, I created a bean class as following:
static class TestBean{
}
static class TestBean$$TestBeanByCGLIB$$e1a36bab extends TestBean implements SpringProxy {
}
The case is to simulate a bean class proxied by cglib proxy.A test case provided as following and the case is not past.
@Test
public void testGetImplClassFromBeanfromCglib()
This matters because cglib proxy can be used while using serviceComb framework and I think just a few lines of code changing can fix this issue.
Attachments
Issue Links
- links to