jboz / plantuml-builder

Plantuml diagram from java sources
Apache License 2.0
45 stars 10 forks source link

Classes with same name appear once and relationships are broken #7

Open RoRoche opened 4 years ago

RoRoche commented 4 years ago

Here are two declarations I make:

interface Classes {
    fun list(): List<Class<out Any>>

    abstract class Wrap(
        protected val origin: Classes
    ) : Classes by origin
}

interface Diagram {
    fun content(): String
    fun print(file: File)

    abstract class Wrap(
        private val delegate: Diagram
    ) : Diagram by delegate
}

So there are 2 classes:

But in the generated diagram, only once is used with simple name Wrap and it does not reveal the true class structure.

Maybe the same with classes with the same name but located in different packages...

jboz commented 4 years ago

Hello, Thank you for the issue, there may be indeed a correction to be made. I will try to correct it today.