Export to GitHub

jtracert - issue #8

Creates separate diagram file for each call in try...catch block


Posted on Jan 31, 2009 by Happy Hippo

What steps will reproduce the problem? 1. write few calls in try...catch block for first time and second time remove the try...block.

What is the expected output? What do you see instead? Creates 1 file per call in try...catch block in first case. In second case without try...catch block, one file for entire trace.

What version of the product are you using? On what operating system? What JRE are you using (vendor and version) ? JDK/JRE 1.6, jTracert 0.0.4

Please provide any additional information below.

Comment #1

Posted on Jan 31, 2009 by Happy Hippo

// CASE1 Main.java: Main method contains these four statements. try{ JMSManager manager = new JMSManager(); manager.createConnection(); manager.sendMessage("hello, world"); manager.close(); }catch(Exception e){e.printStackTrace();}

run with following parameters: -DanalyzerOutput=sequenceFileSystem -DoutputFolder=c:\tmp\sddig -javaagent:c:\jar\jTracert.jar

output files: JMSManager.init.sq test/jms/JMSManager.init { } JMSManager.createConnection.sq, test/jms/JMSManager.createConnection { } JMSManager.sendMessage.sq, test/jms/JMSManager.sendMessage { } JMSManager.close.sq test/jms/JMSManager.close { }

// CASE2 Main.java: Main method contains these four statements (try...catch removed). JMSManager manager = new JMSManager(); manager.createConnection(); manager.sendMessage("hello, world"); manager.close();

run with following parameters: -DanalyzerOutput=sequenceFileSystem -DoutputFolder=c:\tmp\sddig -javaagent:c:\jar\jTracert.jar

output files: Main.main.sq test/jms/Main.main { test/jms/JMSManager.init { } test/jms/JMSManager.createConnection { } test/jms/JMSManager.sendMessage { } test/jms/JMSManager.close { } }

Comment #2

Posted on Jan 31, 2009 by Happy Panda

(No comment was entered for this change.)

Comment #3

Posted on Feb 4, 2009 by Happy Panda

A sample application (called Issue8) was created and added to the SVN - I didn't manage to reproduce this defect.

Can you please provide me with your sources (classes from test.jms package), so I could make more tests.

You can attach the sources directly to this issue, or send me them via email: Dmitry.Bedrin@gmail.com

Thanks, Dmitry.

Comment #4

Posted on Feb 4, 2009 by Happy Hippo

i have tested again and i am sending u the src and the demo results.

Attachments

Comment #5

Posted on Feb 4, 2009 by Happy Panda

Thanks - I can reproduce this defect also!

Status updated to 'Accepted', to be fixed in release 0.0.5

Comment #6

Posted on Feb 5, 2009 by Happy Panda

It appears that the JVM version is the case.

If you amend build.xml in your example and add target="1.5" attribute to the javac task, everything would work as expected.

I'm investigating why it happens now.

Comment #7

Posted on Feb 6, 2009 by Happy Panda

Fixed in SVN revision r118 . This fix will be delivered in next build.

Comment #8

Posted on Feb 6, 2009 by Happy Hippo

done. i build it with new revision and it is working fine.

Comment #9

Posted on Mar 4, 2009 by Happy Panda

Fixed in jTracert version 0.0.5

Status: Verified

Labels:
Type-Defect Priority-Medium