1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 14:25:37 +02:00

Bug 140973 - Fix yet another ClassCastException...

This commit is contained in:
Doug Schaefer 2006-05-24 21:28:41 +00:00
parent df3aaeae35
commit 993f8f9e25

View file

@ -695,7 +695,8 @@ public class CPPSemantics {
if( data.astName instanceof ICPPASTTemplateId && cls instanceof ICPPInternalTemplate ){
ICPPASTTemplateId id = (ICPPASTTemplateId) data.astName;
IType [] args = CPPTemplates.createTypeArray( id.getTemplateArguments() );
cls = (ICPPClassType) ((ICPPInternalTemplate)cls).instantiate( args );
IBinding inst = ((ICPPInternalTemplate)cls).instantiate( args );
cls = inst instanceof ICPPClassType ? (ICPPClassType)inst : cls;
}
if( cls != null ){
try {