Closed immetoo2 closed 4 years ago
The syntax error is caused by the superclass having generic parameters that are themselves generic parameters.
Fixed the syntax error by stripping out <> in the names of the superclass parameters. This will now successfully generate the diagram for the class. However, generics within generics are not really represented well across all diagrams- will open an enhancement for that one.
When using some generics I get following error when viewing the generated javadoc TestGenerics.MyModelBuilder page;
... (skipping 12 lines) ...class "<b><size:14>TestGenerics.AbstractBuilder<P, MyModel, MyModelBuilder></b>\n<size:10>info.leadinglight.umljavadoclet" as info.leadinglight.umljavadoclet.TestGenerics.AbstractBuilderObjectTestGenerics.MyModelTestGenerics.MyModelBuilder<P>{}hide info.leadinglight.umljavadoclet.TestGenerics.AbstractBuilderObjectTestGenerics.MyModelTestGenerics.MyModelBuilder<P> fieldsSyntax Error?
Created a test model; `package info.leadinglight.umljavadoclet;
import java.util.HashMap; import java.util.Map; import java.util.function.BiConsumer; import java.util.function.Consumer;
public class TestGenerics {
} ` When put in src./test/java/..... and run javadoc:test-javadoc to have test case.