Describe the bug
Using Java8, generating PlantUML diagram throws exception java.lang.NoSuchMethodError: java.util.Optional.isEmpty()Z
To Reproduce
Steps to reproduce the behavior:
Install JDK version 1.8.0_302
Run Context Mapper CLI v6.6.0 with the test.cml file (or using VSCode extension)
See error
Expected behavior
UML diagram is generated with no errors
Screenshots / Exceptions
Exceptions:
Exception in thread "main" java.lang.NoSuchMethodError: java.util.Optional.isEmpty()Z
at org.contextmapper.dsl.generator.PlantUMLGenerator.getAggregatesWithStatesAndTransitions(PlantUMLGenerator.java:120)
at org.contextmapper.dsl.generator.PlantUMLGenerator.generateFromContextMappingModel(PlantUMLGenerator.java:76)
at org.contextmapper.dsl.generator.AbstractContextMappingModelGenerator.doGenerate(AbstractContextMappingModelGenerator.java:54)
at org.contextmapper.dsl.standalone.StandaloneContextMapper.callGenerator(StandaloneContextMapper.java:61)
at org.contextmapper.cli.commands.GenerateCommand.run(GenerateCommand.java:55)
at org.contextmapper.cli.ContextMapperCLI.run(ContextMapperCLI.java:49)
at org.contextmapper.cli.ContextMapperCLI.main(ContextMapperCLI.java:38)
Input files to reproduce
BoundedContext Test {
Aggregate Test {
Entity Test {
}
}
}
ContextMap TestMap {
contains Test
}
IDE and Plugin (please complete the following information):
Describe the bug Using Java8, generating PlantUML diagram throws exception
java.lang.NoSuchMethodError: java.util.Optional.isEmpty()Z
To Reproduce Steps to reproduce the behavior:
Expected behavior UML diagram is generated with no errors
Screenshots / Exceptions Exceptions:
Input files to reproduce
IDE and Plugin (please complete the following information):
Additional context Java 11 works fine.