[ https://issues.apache.org/jira/browse/ZOOKEEPER-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norbert Kalmár updated ZOOKEEPER-3760: -------------------------------------- Fix Version/s: 3.5.8 3.6.1 > remove a useless throwing CliException > -------------------------------------- > > Key: ZOOKEEPER-3760 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3760 > Project: ZooKeeper > Issue Type: Bug > Affects Versions: 3.5.7 > Reporter: Jinjiang Ling > Priority: Major > Labels: pull-request-available > Fix For: 3.6.1, 3.5.8 > > Attachments: ZOOKEEPER-3760-1.patch > > Time Spent: 0.5h > Remaining Estimate: 0h > > when I upgrade zookeeper from 3.4.13 to 3.5.7 in my application, I find the > function processCmd in ZooKeeperMain.java is just like blow > {code:java} > protected boolean processCmd(MyCommandOptions co) throws CliException, > IOException, InterruptedException { > boolean watch = false; > try { > watch = processZKCmd(co); > exitCode = ExitCode.EXECUTION_FINISHED.getValue(); > } catch (CliException ex) { > exitCode = ex.getExitCode(); > System.err.println(ex.getMessage()); > } > return watch; > } > {code} > it throws {color:#FF0000}CliException {color}which has been caught in the > funciton, so I think it can be removed. -- This message was sent by Atlassian Jira (v8.3.4#803005)