1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

bug 91878: ArrayIndexOutOfBoundsException & ClassCastException

This commit is contained in:
Andrew Niefer 2005-04-19 19:13:09 +00:00
parent 12c064978c
commit ccee647b44
2 changed files with 5 additions and 2 deletions

View file

@ -118,7 +118,7 @@ public class CPPVariable implements ICPPVariable, ICPPInternalBinding {
if( !( node instanceof IASTDeclarator ) )
return false;
IASTDeclarator dtor = (IASTDeclarator) name.getParent();
IASTDeclarator dtor = (IASTDeclarator) node;
while( dtor.getParent() instanceof IASTDeclarator )
dtor = (IASTDeclarator) dtor.getParent();

View file

@ -982,6 +982,9 @@ public class CPPVisitor {
} catch ( DOMException e ) {
return PROCESS_CONTINUE;
}
if( bs == null || bs.length == 0 )
candidate = null;
else
candidate = bs[ ++n ];
} else {
candidate = potential;