Skip to content

Commit 6d99c85

Browse files
committed
issue #6382: computational time issue of Java generics
1 parent 89ad0fb commit 6d99c85

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/util.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,11 @@ QCString resolveTypeDef(const Definition *context,const QCString &qualifiedName,
377377
if (typedefContext) *typedefContext=context;
378378

379379
// see if the qualified name has a scope part
380+
if (qualifiedName.find('<')!=-1)
381+
{
382+
//printf(" templates cannot be typedefs!\n");
383+
return result;
384+
}
380385
int scopeIndex = qualifiedName.findRev("::");
381386
QCString resName=qualifiedName;
382387
if (scopeIndex!=-1) // strip scope part for the name
@@ -460,7 +465,7 @@ QCString resolveTypeDef(const Definition *context,const QCString &qualifiedName,
460465
if (md)
461466
{
462467
//printf(">>resolveTypeDef: Found typedef name '%s' in scope '%s' value='%s' args='%s'\n",
463-
// qPrint(qualifiedName),qPrint(context->name()),md->typeString(),md->argsString()
468+
// qPrint(qualifiedName),qPrint(context->name()),qPrint(md->typeString()),qPrint(md->argsString())
464469
// );
465470
result=md->typeString();
466471
QCString args = md->argsString();

0 commit comments

Comments
 (0)