> > * [x] I have searched the > > [issues](https://github.com/apache/incubator-dubbo/issues) of this > > repository and believe that this is not a duplicate. > > * [x] I have checked the > > [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this > > repository and believe that this is not a duplicate. > > > > ### Environment > > > > * Dubbo version: 2.7.0+ > > * Operating System version: mac > > * Java version: 1.8 > > > > ### Steps to reproduce this issue > > Assume that there is an interface below: > > ``` > > package com.youzan.nova.service; > > > > import java.util.Set; > > > > public interface OverrideService { > > > > void invoke(Integer id, Set<String> orderNumbers); > > > > void invoke(Long id, Set<String> orderNumbers); > > > > } > > > > package com.youzan.nova.service; > > > > import java.util.Set; > > > > public class OverrideServiceImpl implements OverrideService { > > @Override > > public void invoke(Integer id, Set<String> orderNumbers) { > > System.out.println(id); > > } > > > > @Override > > public void invoke(Long id, Set<String> orderNumbers) { > > System.out.println(id); > > } > > } > > ``` > > Start telnet call service: > > ``` > > invoke com.youzan.nova.service.OverrideService.invoke("13", Set["1"]) > > invoke com.youzan.nova.service.OverrideService.invoke("13L", Set["1"]) > > ``` > > Always only call the method `invoke(Long id, Set<String> orderNumbers)`. > > 我试了下,参数带L后缀不能被正确解析成Long类型的数字
字符串带L不能正确解析 [ Full content available at: https://github.com/apache/incubator-dubbo/issues/2766 ] This message was relayed via gitbox.apache.org for [email protected]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
