Ashutosh-Panda2004 commented on issue #16530:
URL: https://github.com/apache/dubbo/issues/16530#issuecomment-6285317573

   Hi, I checked this on the `3.3` branch and I can confirm the parsing problem.
   
   I took the argument parsing block from `CountTelnet#execute` as it is on 
`3.3` and ran it in a small Java harness with the cases from this issue. This 
is what I got:
   
   ​```
   after cd, count length 3 -> service=repro.Echo method=length times=1
   no cd, count repro.Echo length 3 -> service=repro.Echo method=length times=3
   after cd, count 3 -> service=repro.Echo method=null times=3
   after cd, count length 3 5 -> service=repro.Echo method=length times=5
   ​```
   
   So after `cd`, `count length 3` really does fall back to `times=1`, because 
the code reads `args[2]` and that argument only exists when the service name is 
given as well. The `count 3` form works for the reason given in the issue, 
since a numeric first argument is taken as the times.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to