提交 239568b7 编写于 作者: P pgovereau

8034048: javac crash with method references plus lambda plus var args

Reviewed-by: jjg, vromero
上级 b23cd9e0
/* /*
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -835,6 +835,8 @@ public class TransTypes extends TreeTranslator { ...@@ -835,6 +835,8 @@ public class TransTypes extends TreeTranslator {
public void visitReference(JCMemberReference tree) { public void visitReference(JCMemberReference tree) {
tree.expr = translate(tree.expr, erasure(tree.expr.type)); tree.expr = translate(tree.expr, erasure(tree.expr.type));
tree.type = erasure(tree.type); tree.type = erasure(tree.type);
if (tree.varargsElement != null)
tree.varargsElement = erasure(tree.varargsElement);
result = tree; result = tree;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册