1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 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 |
82 final JavacMessages messages; |
82 final JavacMessages messages; |
83 final Names names; |
83 final Names names; |
84 final boolean allowBoxing; |
84 final boolean allowBoxing; |
85 final boolean allowCovariantReturns; |
85 final boolean allowCovariantReturns; |
86 final boolean allowObjectToPrimitiveCast; |
86 final boolean allowObjectToPrimitiveCast; |
87 final boolean allowDefaultMethods; |
|
88 final ClassReader reader; |
87 final ClassReader reader; |
89 final Check chk; |
88 final Check chk; |
90 final Enter enter; |
89 final Enter enter; |
91 JCDiagnostic.Factory diags; |
90 JCDiagnostic.Factory diags; |
92 List<Warner> warnStack = List.nil(); |
91 List<Warner> warnStack = List.nil(); |
109 names = Names.instance(context); |
108 names = Names.instance(context); |
110 Source source = Source.instance(context); |
109 Source source = Source.instance(context); |
111 allowBoxing = source.allowBoxing(); |
110 allowBoxing = source.allowBoxing(); |
112 allowCovariantReturns = source.allowCovariantReturns(); |
111 allowCovariantReturns = source.allowCovariantReturns(); |
113 allowObjectToPrimitiveCast = source.allowObjectToPrimitiveCast(); |
112 allowObjectToPrimitiveCast = source.allowObjectToPrimitiveCast(); |
114 allowDefaultMethods = source.allowDefaultMethods(); |
|
115 reader = ClassReader.instance(context); |
113 reader = ClassReader.instance(context); |
116 chk = Check.instance(context); |
114 chk = Check.instance(context); |
117 enter = Enter.instance(context); |
115 enter = Enter.instance(context); |
118 capturedName = names.fromString("<captured wildcard>"); |
116 capturedName = names.fromString("<captured wildcard>"); |
119 messages = JavacMessages.instance(context); |
117 messages = JavacMessages.instance(context); |