Merge pull request #598 from eclipse/sz_bug529361

Bug 529361: Preserve forward backwards compatibility in edge cases
This commit is contained in:
Sebastian Zarnekow 2018-01-04 10:41:00 +01:00 committed by GitHub
commit f257fe720b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,8 @@
*******************************************************************************/
package org.eclipse.xtext.ide.editor.contentassist.antlr;
import java.util.Collection;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.TokenSource;
import org.eclipse.xtext.ide.LexerIdeBindings;
@ -39,5 +41,11 @@ public abstract class AbstractContentAssistParser
/* Abstract override is necessary to be backwards compatible due to generic signature in super class */
@Override
protected abstract AbstractInternalContentAssistParser createParser();
/* Delegating override is necessary to avoid synthetic method signatures in subtypes and thereby preserve binary compatibility in edge-cases */
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
return super.getFollowElements(parser);
}
}