Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix API compat issue for users that upgrade from 4.1.x to 4.2.0 #14120

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

normanmaurer
Copy link
Member

Motivation:

One API compat issue was detected by servicetalk. We need to fix it:

/home/runner/work/servicetalk/servicetalk/servicetalk-dns-discovery-netty/src/main/java/io/servicetalk/dns/discovery/netty/DnsResolverAddressTypes.java:66: error: reference to computeResolvedAddressTypes is ambiguous

        return fromNettyType(DnsNameResolverBuilder.computeResolvedAddressTypes());
                                                   ^
  both method computeResolvedAddressTypes(io.netty.channel.socket.InternetProtocolFamily...) in io.netty.resolver.dns.DnsNameResolverBuilder and method computeResolvedAddressTypes(io.netty.channel.socket.SocketProtocolFamily...) in io.netty.resolver.dns.DnsNameResolverBuilder match
Note: Some input files use or override a deprecated API.
> Task :servicetalk-dns-discovery-netty:compileJava FAILED

Modifications:

Rename method to fix compat

Result:

Be able to use 4.2.0 where 4.1.x was used

Motivation:

One API compat issue was detected by servicetalk. We need to fix it:

```
/home/runner/work/servicetalk/servicetalk/servicetalk-dns-discovery-netty/src/main/java/io/servicetalk/dns/discovery/netty/DnsResolverAddressTypes.java:66: error: reference to computeResolvedAddressTypes is ambiguous

        return fromNettyType(DnsNameResolverBuilder.computeResolvedAddressTypes());
                                                   ^
  both method computeResolvedAddressTypes(io.netty.channel.socket.InternetProtocolFamily...) in io.netty.resolver.dns.DnsNameResolverBuilder and method computeResolvedAddressTypes(io.netty.channel.socket.SocketProtocolFamily...) in io.netty.resolver.dns.DnsNameResolverBuilder match
Note: Some input files use or override a deprecated API.
> Task :servicetalk-dns-discovery-netty:compileJava FAILED
```

Modifications:

Rename method to fix compat

Result:

Be able to use 4.2.0 where 4.1.x was used
@normanmaurer normanmaurer added this to the 4.2.0.Alpha2 milestone Jun 13, 2024
@chrisvest
Copy link
Contributor

@metlos This looks like a rare case where revapi didn't flag a potential compatibility issue, FYI.

@normanmaurer normanmaurer merged commit 6d00503 into 4.2 Jun 13, 2024
12 of 17 checks passed
@normanmaurer normanmaurer deleted the fix_api_compat branch June 13, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants