1 /* |
1 /* |
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
833 } |
833 } |
834 |
834 |
835 public void visitReference(JCMemberReference tree) { |
835 public void visitReference(JCMemberReference tree) { |
836 tree.expr = translate(tree.expr, erasure(tree.expr.type)); |
836 tree.expr = translate(tree.expr, erasure(tree.expr.type)); |
837 tree.type = erasure(tree.type); |
837 tree.type = erasure(tree.type); |
|
838 if (tree.varargsElement != null) |
|
839 tree.varargsElement = erasure(tree.varargsElement); |
838 result = tree; |
840 result = tree; |
839 } |
841 } |
840 |
842 |
841 public void visitTypeArray(JCArrayTypeTree tree) { |
843 public void visitTypeArray(JCArrayTypeTree tree) { |
842 tree.elemtype = translate(tree.elemtype, null); |
844 tree.elemtype = translate(tree.elemtype, null); |