alibaba / alibaba/Sentinel

SentinelResourceAspect can not get @SentinelResource annotation in Proxy Interface

Open
#284 7 comments 0 reactions 1 assignee Claimed by @sczyh30 View on GitHub
area/annotation good first issue kind/bug
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

## Issue Description

I can not get `@SentinelResource` annotation property from `Method` in `SentinelResourceAspect` when I use a Proxy Interface(EchoService) that created by `java.lang.reflect.Proxy`.

```
public interface EchoService {
@SentinelResource(value = "testResource")
String echo(String str);
}
```

Type: *bug report*

### Describe what happened (or what feature you want)

![image](https://user-images.githubusercontent.com/5254035/49488419-8fb0d300-f881-11e8-97a0-b5e8e5996a02.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.