mvn -Pecj336 clean compileto reproduce the bug. The importorg.example.GenerateInnerClassTriggerGencannot be resolved. Uses ECJ 3.36, the same happens also for ECJ 3.35.mvn -Pecj334 clean compileto show that the bug is not in ECJ 3.34. The importorg.example.GenerateInnerClassTriggerGenis resolved just fine.mvn clean compileto use the javac compiler instead of the eclipse compiler. The importorg.example.GenerateInnerClassTriggerGenis also resolved just fine.
Interestingly enough, the bug is not reproducible if the unused annotation definition OtherAnnotation in the
class org.example.GenerateInnerClassTrigger is removed.