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

Reviewed-by: jjg, vromero
This commit is contained in:
Paul Govereau 2014-02-26 15:38:55 -08:00 committed by Jonathan Gibbons
parent 38cc470411
commit f6250d7784

@ -1,5 +1,5 @@
/*
* 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -834,6 +834,8 @@ public class TransTypes extends TreeTranslator {
public void visitReference(JCMemberReference tree) {
tree.expr = translate(tree.expr, erasure(tree.expr.type));
tree.type = erasure(tree.type);
if (tree.varargsElement != null)
tree.varargsElement = erasure(tree.varargsElement);
result = tree;
}