# Create seq\_diag from java , with explosion of private methods

**URL:** <https://forums.visual-paradigm.com/t/create-seq-diag-from-java-with-explosion-of-private-methods/13880>\
**Category:** How To\
**Created:** [March 7, 2018, 5:06pm UTC](https://forums.visual-paradigm.com/t/create-seq-diag-from-java-with-explosion-of-private-methods/13880 "2018-03-07T17:06:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngald](https://avatars.discourse-cdn.com/v2/letter/n/ea5d25/32.png) [@ngald](https://forums.visual-paradigm.com/u/ngald)\
**Post date:** [March 7, 2018, 5:06pm UTC](https://forums.visual-paradigm.com/t/create-seq-diag-from-java-with-explosion-of-private-methods/13880/1 "2018-03-07T17:06:32Z")

</div>

Hi

from java source I make a great number o sequence diagram.  
that’s rigth, but I have seen that the diagram do not “exploded” call to private methods classes.  
I make an exanple.  
We suppose a class MyClass with public methods go. this i s entry point for diagram. Rigth.  
The go( ) call

- another private method MyClass.do1( )  
and
- a public method of another class AntherClass.make( )

the methos do1( ) contains very important logic (nested call,calucalte,…), for this I need in the diagram

\*\* The problem \*\*  
The diagram product from reverse do not “exploded” do1 (), only trace a call

I have tried declaring Public the method do1(). It is the same.

Any idea ?

```
                thak you very much
```

---

<div class="post-metadata">

**Author:** ![Kit.So](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/kit.so/32/3594_2.png) [@Kit.So](https://forums.visual-paradigm.com/u/Kit.So)\
**Post date:** [March 8, 2018, 5:42am UTC](https://forums.visual-paradigm.com/t/create-seq-diag-from-java-with-explosion-of-private-methods/13880/2 "2018-03-08T05:42:25Z")

</div>

Hi Nicolatenente,

Can you provide sample code that can reproduce the problem?

---

<div class="post-metadata">

**Author:** ![ngald](https://avatars.discourse-cdn.com/v2/letter/n/ea5d25/32.png) [@ngald](https://forums.visual-paradigm.com/u/ngald)\
**Post date:** [March 8, 2018, 9:22am UTC](https://forums.visual-paradigm.com/t/create-seq-diag-from-java-with-explosion-of-private-methods/13880/3 "2018-03-08T09:22:21Z")

</div>

package pack;  
public class ClassA {

public String method\_1(int x)  
{  
int r=-1 ;  
r= method\_2(x);  
return “”+r ;  
}

public int method\_2(int x){  
return method\_3(x);  
}

public int method\_3(int x)  
{  
System.out.println(" \>\> this is method\_3 ");  
return 3;  
}

}

* * *

this is a simple example but it is enough. there is a chain : method\_1 -\> method\_2 -\>- method\_3

I you try to make a reverse seq\_diag by ethod\_1 the producted diagram show ::  
method\_1 ----\> method\_2

In other words the diag do not continue inside explosion method\_2 -\> method\_3,  
I think because is inside the sam class  
Note that all methods are public

---

<div class="post-metadata">

**Author:** ![Kit.So](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/kit.so/32/3594_2.png) [@Kit.So](https://forums.visual-paradigm.com/u/Kit.So)\
**Post date:** [March 8, 2018, 9:56am UTC](https://forums.visual-paradigm.com/t/create-seq-diag-from-java-with-explosion-of-private-methods/13880/4 "2018-03-08T09:56:43Z")

</div>

Hi Nicolatenente,

To avoid producing very large and un-readable sequence diagram, we only reverse selected operation.  
But you can right click and select **Instant Reverse Java Source** on any operation to further reverse.

![irsd](https://forums.visual-paradigm.com/uploads/default/original/2X/a/a8521747377ed825bb34c579cf111df0abcf79ae.png)

---

<div class="post-metadata">

**Author:** ![ngald](https://avatars.discourse-cdn.com/v2/letter/n/ea5d25/32.png) [@ngald](https://forums.visual-paradigm.com/u/ngald)\
**Post date:** [March 8, 2018, 10:34am UTC](https://forums.visual-paradigm.com/t/create-seq-diag-from-java-with-explosion-of-private-methods/13880/5 "2018-03-08T10:34:11Z")

</div>

it is not correct, becuse this mode (another reverse) view the other methods not inside the caller but after.  
I want  
m1--------\>m2 |------------------\> m3

not

m1-----|  
|---------------\>m2  
|  
\<-----------------  
|  
|  
|------------------\> m3  
|  
\<---------------------

---

<div class="post-metadata">

**Author:** ![Kit.So](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/kit.so/32/3594_2.png) [@Kit.So](https://forums.visual-paradigm.com/u/Kit.So)\
**Post date:** [March 9, 2018, 7:14am UTC](https://forums.visual-paradigm.com/t/create-seq-diag-from-java-with-explosion-of-private-methods/13880/6 "2018-03-09T07:14:18Z")

</div>

You’re right. I think the correct result should be like that:  
 ![seq](https://forums.visual-paradigm.com/uploads/default/original/2X/1/175701316557e0cc6f2dcd7acfc454409cddacf8.png)

Sorry for the issue. We’ll follow up and will keep you informed when it resolved.

---

<div class="post-metadata">

**Author:** ![Kit.So](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/kit.so/32/3594_2.png) [@Kit.So](https://forums.visual-paradigm.com/u/Kit.So)\
**Post date:** [March 14, 2018, 10:52am UTC](https://forums.visual-paradigm.com/t/create-seq-diag-from-java-with-explosion-of-private-methods/13880/7 "2018-03-14T10:52:04Z")

</div>

Hi,

Sorry for the delay. We’ve fixed the issue and will keep you informed when patch available.

---

<div class="post-metadata">

**Author:** ![ngald](https://avatars.discourse-cdn.com/v2/letter/n/ea5d25/32.png) [@ngald](https://forums.visual-paradigm.com/u/ngald)\
**Post date:** [March 14, 2018, 2:40pm UTC](https://forums.visual-paradigm.com/t/create-seq-diag-from-java-with-explosion-of-private-methods/13880/8 "2018-03-14T14:40:14Z")

</div>

thanks

I’m waiting this patch

nicola

---

<div class="post-metadata">

**Author:** ![Rain](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/rain/32/2309_2.png) [@Rain](https://forums.visual-paradigm.com/u/Rain)\
**Post date:** [March 15, 2018, 6:17am UTC](https://forums.visual-paradigm.com/t/create-seq-diag-from-java-with-explosion-of-private-methods/13880/9 "2018-03-15T06:17:54Z")

</div>

Hi ngald,

I would like to let you know our engineers had deployed a patch which fixed the revere Java code to sequence diagram problem you experienced. Please update your software to latest patch build (v15.0 build 20180315bc or later) to get the problem fixed. Details about how to update the software to latest patch build can be found at [http://www.visual-paradigm.com/support/articles/update-to-latest-patch.jsp](http://www.visual-paradigm.com/support/articles/update-to-latest-patch.jsp)

- Please make sure you have pressed the **Update to latest patch** button on the left hand side of the dialog right after launching the update program

Feel free to contact me for any questions and wish you have a good day!

Best regards,  
Rain Wong
