PlantUML Dependency

Open-Source tool in Java to parse source code to automatically draw UML class Diagram using PlantUML

Why the result is different when using a different JRE with PlantUML Dependency ?

This is part of the PlantUML Dependency algorithm, which uses java.lang.Class.forName for some particular cases.

Indeed, when an object is parsed it may have several extensions and / or implementations which are not declared in the imports and will not be parsed by the program. This mean that either the object is provided by the java.lang library or the object is in the same package. If the object is in the same package and is parsed afterwards, the dependency is identified, no problem in this case. But if the object is not parsed, it means that PlantUML Dependency has to know if the object comes from java.lang or from the same package, and it uses java.lang.Class.forName for that.

A feature request has been opened to improve this behavior, allowing to choose the JRE PlantUML Dependency is using for these cases. (opened feature 33)

Example : view the differences between JRE 6 and 7 on the JDK 1.7.0.25 source code

JRE version running PlantUML Dependency Processed source code Output result file
1.6.0_45 JDK 1.7.0.25 plantuml-jdk-1.7.0.25-by1.2.0-withJRE1.6.txt (3385 ko)
1.7.0_45 JDK 1.7.0.25 plantuml-jdk-1.7.0.25-by1.2.0.txt (3384 ko)

You may also have a look about PlantUML Dependency performances here

You may also have a look about output differences between all PlantUML Dependency versions here

Back to top Contact Donate Get plantuml dependency at SourceForge.net. Fast, secure and Free Open Source software downloads