1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

bug 50984 - fix class cast exceptions

This commit is contained in:
Andrew Niefer 2004-04-28 18:14:58 +00:00
parent 9b4b4cabc4
commit 02d14a80c9

View file

@ -251,7 +251,8 @@ public class TemplateFactory extends ExtensibleSymbol implements ITemplateFactor
private void memberDeclaration( ISymbol symbol ) throws ParserSymbolTableException{
ISymbol previous = findPreviousSymbol( symbol, null );
if( previous == null ) {
//??
//could happen in trying to define something for which we don't have a declaration
throw new ParserSymbolTableException( ParserSymbolTableException.r_BadTemplate );
} else {
IContainerSymbol originalContainer = previous.getContainingSymbol();