From 6d99c858fd799a2cfa5b8237bd60b6b01fa67588 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 23 Jan 2022 14:29:26 +0100 Subject: [PATCH] issue #6382: computational time issue of Java generics --- src/util.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index 246754a0384..d72da683d08 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -377,6 +377,11 @@ QCString resolveTypeDef(const Definition *context,const QCString &qualifiedName, if (typedefContext) *typedefContext=context; // see if the qualified name has a scope part + if (qualifiedName.find('<')!=-1) + { + //printf(" templates cannot be typedefs!\n"); + return result; + } int scopeIndex = qualifiedName.findRev("::"); QCString resName=qualifiedName; if (scopeIndex!=-1) // strip scope part for the name @@ -460,7 +465,7 @@ QCString resolveTypeDef(const Definition *context,const QCString &qualifiedName, if (md) { //printf(">>resolveTypeDef: Found typedef name '%s' in scope '%s' value='%s' args='%s'\n", - // qPrint(qualifiedName),qPrint(context->name()),md->typeString(),md->argsString() + // qPrint(qualifiedName),qPrint(context->name()),qPrint(md->typeString()),qPrint(md->argsString()) // ); result=md->typeString(); QCString args = md->argsString();