Skip to content

[Bug] JavaAgent does not support the default method in the interface #9501

@byspacecbk

Description

@byspacecbk

Search before asking

  • I had searched in the issues and found no similar issues.

Apache SkyWalking Component

Java Agent (apache/skywalking-java)

What happened

In the springboot project, the controller class implements an interface with a default method (a new feature of Java 8). The default method of this interface can be called, but skywalking does not record it. I have used the latest version of skywalking.

What you expected to happen

the controller class implements an interface with a default method (a new feature of Java 8)

How to reproduce

In the springboot project, the controller class implements an interface with a default method (a new feature of Java 8). The default method of this interface can be called, but skywalking does not record it.

public interface ClusterTest2Controller {
@GetMapping("/_query")
@QueryAction
@QueryOperation(summary = "queryPager")
default Mono queryPager() {
System.out.println("=================queryPager=====================");
return Mono.empty();
}
}

@RequestMapping("/cluster2")
@RestController
@authorize
@tag(name = "cluster2")
public class ClusterTestController implements ClusterTest2Controller{

}

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working and you are sure it's a bug!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions