Skip to content

Commit

Permalink
Partial fix for ASTConverter15JLS8Test.test0024 - type arguments in C…
Browse files Browse the repository at this point in the history
…lassInstanceCreation were skipped

Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
Rob Stryker committed May 3, 2024
1 parent 5a8d8fd commit 2d84c0b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<JCExpression> 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) {
Expand Down

0 comments on commit 2d84c0b

Please sign in to comment.