[java code coverage] code coverage and try-finally

2014-12-22 Thread silverio . di
In following code I've got coverage till return but not for finally and related code when java actually run it. What is the mistake ? public String getNodeID() { mResourcesNodesLock.lock(); try { return

Re: [java code coverage] code coverage and try-finally

2014-12-22 Thread Mirko Friedenhagen
Silvio, the java compiler is probably creating multiple branches in byte code for your source. The number of branches depend on the jdk version. Just search in your favorite search engine for jacoco try finally. Regards Mirko -- Sent from my mobile On Dec 22, 2014 9:36 AM,