qsLI commented on issue #8174:
URL: https://github.com/apache/shardingsphere/issues/8174#issuecomment-727933178


   Simple code to reproduce
   
   ```java
   @RunWith(JUnit4ClassRunner.class)
   public class MarshalTest implements InvocationHandler {
   
       @Test
       public void testMarshal() {
           AInterface proxy = (AInterface) 
Proxy.newProxyInstance(AInterface.class.getClassLoader(),
               new Class<?>[] {AInterface.class}, this);
   
           final Properties properties = new Properties();
           properties.put("test", proxy);
           final String s = new Yaml(new 
DefaultYamlRepresenter()).dumpAsMap(properties);
           System.out.println("s = " + s);
       }
   
       @Override
       public Object invoke(Object proxy, Method method, Object[] args) throws 
Throwable {
           return null;
       }
   
       public static class SimpleImpl implements AInterface {
           @Override
           public String hello() {
               return null;
           }
       }
   
       public interface AInterface {
   
           String hello();
       }
   }
   ```
   
   
   result:
   
   
![image](https://user-images.githubusercontent.com/6805785/99249917-d0733e00-2845-11eb-8d06-140024c2d5f0.png)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to