publicissapient-france / selma

Selma Java bean mapping that compiles
http://selma-java.org
Apache License 2.0
213 stars 38 forks source link

Failing to generate adapter class from root package #202

Open fralalonde opened 6 years ago

fralalonde commented 6 years ago

Compiling a root-package (with no package def) class containing @Mapper interfaces fails with an exception similar to

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project moop: Compilation failure
[ERROR] javax.annotation.processing.FilerException: Illegal name .RootApp_SelmaMapperSelmaGeneratedClass

It seems the MapperClassGenerator expects the containing class to be in a non-empty package.

Fix PR to follow.