dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beiwei30 (GitHub) <git...@apache.org>
Subject [GitHub] [incubator-dubbo] beiwei30 commented on issue #2831: 修改jdk不兼容问题
Date Fri, 07 Dec 2018 08:02:35 GMT
one question, to solve this issue, is it as simple as changing all `compareTo(Router o)` implementation
to:

```
    @Override
    public int compareTo(Router o) {
        if (!(o instanceof ScriptRouter)) {
            return 0; // from 1 to 0
        }
       ...
```

instead of introducing `Integer getPriority();` on the interface?

[ Full content available at: https://github.com/apache/incubator-dubbo/pull/2831 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


Mime
View raw message