mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
Merge pull request #598 from eclipse/sz_bug529361
Bug 529361: Preserve forward backwards compatibility in edge cases
This commit is contained in:
commit
f257fe720b
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue