diff --git a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java index ef6639d5df4..84cb9d8314e 100644 --- a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java +++ b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java @@ -1130,6 +1130,15 @@ private Expression convertExpression(JCExpression javac) { if (newClass.encl != null) { res.setExpression(convertExpression(newClass.encl)); } + if( newClass.getTypeArguments() != null && this.ast.apiLevel != AST.JLS2_INTERNAL) { + Iterator it = newClass.getTypeArguments().iterator(); + while(it.hasNext()) { + Type e = convertToType(it.next()); + if( e != null ) { + res.typeArguments().add(e); + } + } + } return res; } if (javac instanceof JCErroneous error) {