diff --git a/base/org.eclipse.jdt.groovy.core/src/org/codehaus/jdt/groovy/internal/compiler/ast/GroovyClassScope.java b/base/org.eclipse.jdt.groovy.core/src/org/codehaus/jdt/groovy/internal/compiler/ast/GroovyClassScope.java index 6465c0be6b..b46d13a1ba 100644 --- a/base/org.eclipse.jdt.groovy.core/src/org/codehaus/jdt/groovy/internal/compiler/ast/GroovyClassScope.java +++ b/base/org.eclipse.jdt.groovy.core/src/org/codehaus/jdt/groovy/internal/compiler/ast/GroovyClassScope.java @@ -198,6 +198,10 @@ protected MethodBinding[] augmentMethodBindings(MethodBinding[] methodBindings) private int getModifiers(PropertyNode property) { int modifiers = (property.getModifiers() & 0xF); + if (property.getType().isUsingGenerics()) { + modifiers |= ExtraCompilerModifiers.AccGenericSignature; + } + // if @PackageScope was detected by GCUD, field's modifiers will show it char[] nameChars = property.getName().toCharArray(); for (FieldDeclaration field : referenceContext.fields) {