candyleer commented on issue #2445: java.lang.StackOverflowError: null  agent:
URL: https://github.com/apache/skywalking/issues/2445#issuecomment-494876714
 
 
   @zmjzmjzmj8  it seem that when all inherit methods are annotaioned with 
`@Trace` this will be reproduced?right?
   ```java
   public abstract class AbstractJmsSender<T> {
   
   
       @Trace
       public String send(T content) {
           System.out.println("AbstractJmsSender send");
           try {
               return "AbstractJmsSender";
           } catch (Exception e) {
               e.printStackTrace();
               return null;
           }
   
       }
   }
   
   @Service
   public class ASender extends AbstractJmsSender<String> {
   
   
       public String memberSend(String content) {
           System.out.println("ASender memberSend");
           try {
               return memberSend(content, "b");
           } catch (Exception e) {
               e.printStackTrace();
               return null;
           }
       }
   
       @Trace
       public String memberSend(String content, String con2) {
           System.out.println("ASender memberSend");
           return "ASender";
       }
   
   }
   @Service
   public class BSender extends ASender {
   
       @Override
       @Trace
       public String memberSend(String content, String con2) {
           System.out.println("BSender memberSend");
           try {
               return super.send(content);
           } catch (Exception e) {
               e.printStackTrace();
               return null;
           }
       }
   
   }
   ```
   if anyone missed `@Trace` or not be enhanced by bytebuddy ,this error will 
not be happened.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to