equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2017, 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 |
4963 initTypeIfNeeded(that); |
4963 initTypeIfNeeded(that); |
4964 if (that.sym == null) { |
4964 if (that.sym == null) { |
4965 that.sym = new VarSymbol(0, that.name, that.type, syms.noSymbol); |
4965 that.sym = new VarSymbol(0, that.name, that.type, syms.noSymbol); |
4966 that.sym.adr = 0; |
4966 that.sym.adr = 0; |
4967 } |
4967 } |
|
4968 if (that.vartype == null) { |
|
4969 that.vartype = make.Erroneous(); |
|
4970 } |
4968 super.visitVarDef(that); |
4971 super.visitVarDef(that); |
4969 } |
4972 } |
4970 |
4973 |
4971 @Override |
4974 @Override |
4972 public void visitNewClass(JCNewClass that) { |
4975 public void visitNewClass(JCNewClass that) { |