diff --git a/org.eclipse.xtend.core/src/org/eclipse/xtend/core/jvmmodel/XtendJvmModelInferrer.java b/org.eclipse.xtend.core/src/org/eclipse/xtend/core/jvmmodel/XtendJvmModelInferrer.java index 106a20f699d..77b950355ea 100644 --- a/org.eclipse.xtend.core/src/org/eclipse/xtend/core/jvmmodel/XtendJvmModelInferrer.java +++ b/org.eclipse.xtend.core/src/org/eclipse/xtend/core/jvmmodel/XtendJvmModelInferrer.java @@ -490,7 +490,7 @@ protected void appendSyntheticDispatchMethods(XtendTypeDeclaration source, final JvmOperation operation = deriveGenericDispatchOperationSignature(localOperations, target); if (operation != null) { dispatchHelper.markAsDispatcherFunction(operation); - if (generatorConfig.isUseXbaseGenerated()) { + if (generatorConfig.isUseXbaseGenerated() && typeReferences.findDeclaredType(XbaseGenerated.class, operation) != null) { operation.getAnnotations().add(_annotationTypesBuilder.annotationRef(XbaseGenerated.class)); } operation.setSimpleName(signature.getSimpleName());