author | jlahoda |
Mon, 21 Oct 2019 15:38:26 +0200 | |
changeset 58713 | ad69fd32778e |
parent 54514 | b0651dcc8d98 |
child 59285 | 7799a51dbe30 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
54514
b0651dcc8d98
8217047: Provide a way to inject missing parameter names
jlahoda
parents:
51883
diff
changeset
|
2 |
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved. |
10 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
5520 | 7 |
* published by the Free Software Foundation. Oracle designates this |
10 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5520 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
10 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5520 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
10 | 24 |
*/ |
25 |
||
26 |
package com.sun.tools.javac.code; |
|
27 |
||
14258 | 28 |
import java.util.Collections; |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
29 |
import java.util.EnumSet; |
10 | 30 |
import java.util.Map; |
31 |
import java.util.Set; |
|
22163 | 32 |
import java.util.concurrent.ConcurrentHashMap; |
14258 | 33 |
|
10 | 34 |
import javax.lang.model.element.Modifier; |
35 |
||
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
36 |
import com.sun.tools.javac.util.Assert; |
22153
f9f06fcca59d
8029800: Flags.java uses String.toLowerCase without specifying Locale
jlahoda
parents:
21895
diff
changeset
|
37 |
import com.sun.tools.javac.util.StringUtils; |
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
38 |
|
10 | 39 |
/** Access flags and other modifiers for Java classes and members. |
40 |
* |
|
5847
1908176fd6e3
6944312: Potential rebranding issues in openjdk/langtools repository sources
jjg
parents:
5520
diff
changeset
|
41 |
* <p><b>This is NOT part of any supported API. |
1908176fd6e3
6944312: Potential rebranding issues in openjdk/langtools repository sources
jjg
parents:
5520
diff
changeset
|
42 |
* If you write code that depends on this, you do so at your own risk. |
10 | 43 |
* This code and its internal interfaces are subject to change or |
44 |
* deletion without notice.</b> |
|
45 |
*/ |
|
46 |
public class Flags { |
|
47 |
||
48 |
private Flags() {} // uninstantiable |
|
49 |
||
50 |
public static String toString(long flags) { |
|
8625
6b51ef804d49
6639645: Modeling type implementing missing interfaces
jjg
parents:
8241
diff
changeset
|
51 |
StringBuilder buf = new StringBuilder(); |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
52 |
String sep = ""; |
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
53 |
for (Flag flag : asFlagSet(flags)) { |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
54 |
buf.append(sep); |
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
55 |
buf.append(flag); |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
56 |
sep = " "; |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
57 |
} |
10 | 58 |
return buf.toString(); |
59 |
} |
|
60 |
||
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
61 |
public static EnumSet<Flag> asFlagSet(long flags) { |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
62 |
EnumSet<Flag> flagSet = EnumSet.noneOf(Flag.class); |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
63 |
for (Flag flag : Flag.values()) { |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
64 |
if ((flags & flag.value) != 0) { |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
65 |
flagSet.add(flag); |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
66 |
flags &= ~flag.value; |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
67 |
} |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
68 |
} |
25848
3bc09f4676a9
8043643: Add an crules analyzer avoiding string concatenation in messages of Assert checks.
jlahoda
parents:
25007
diff
changeset
|
69 |
Assert.check(flags == 0); |
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
70 |
return flagSet; |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
71 |
} |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
72 |
|
10 | 73 |
/* Standard Java flags. |
74 |
*/ |
|
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
75 |
public static final int PUBLIC = 1; |
10 | 76 |
public static final int PRIVATE = 1<<1; |
77 |
public static final int PROTECTED = 1<<2; |
|
78 |
public static final int STATIC = 1<<3; |
|
79 |
public static final int FINAL = 1<<4; |
|
80 |
public static final int SYNCHRONIZED = 1<<5; |
|
81 |
public static final int VOLATILE = 1<<6; |
|
82 |
public static final int TRANSIENT = 1<<7; |
|
83 |
public static final int NATIVE = 1<<8; |
|
84 |
public static final int INTERFACE = 1<<9; |
|
85 |
public static final int ABSTRACT = 1<<10; |
|
86 |
public static final int STRICTFP = 1<<11; |
|
87 |
||
88 |
/* Flag that marks a symbol synthetic, added in classfile v49.0. */ |
|
89 |
public static final int SYNTHETIC = 1<<12; |
|
90 |
||
91 |
/** Flag that marks attribute interfaces, added in classfile v49.0. */ |
|
92 |
public static final int ANNOTATION = 1<<13; |
|
93 |
||
94 |
/** An enumeration type or an enumeration constant, added in |
|
95 |
* classfile v49.0. */ |
|
96 |
public static final int ENUM = 1<<14; |
|
97 |
||
15720
e61b2f7a5148
8006345: Report Synthesized Parameters in java.lang.reflect.Parameter API
mcimadamore
parents:
15385
diff
changeset
|
98 |
/** Added in SE8, represents constructs implicitly declared in source. */ |
e61b2f7a5148
8006345: Report Synthesized Parameters in java.lang.reflect.Parameter API
mcimadamore
parents:
15385
diff
changeset
|
99 |
public static final int MANDATED = 1<<15; |
e61b2f7a5148
8006345: Report Synthesized Parameters in java.lang.reflect.Parameter API
mcimadamore
parents:
15385
diff
changeset
|
100 |
|
10 | 101 |
public static final int StandardFlags = 0x0fff; |
102 |
||
103 |
// Because the following access flags are overloaded with other |
|
104 |
// bit positions, we translate them when reading and writing class |
|
105 |
// files into unique bits positions: ACC_SYNTHETIC <-> SYNTHETIC, |
|
106 |
// for example. |
|
107 |
public static final int ACC_SUPER = 0x0020; |
|
108 |
public static final int ACC_BRIDGE = 0x0040; |
|
109 |
public static final int ACC_VARARGS = 0x0080; |
|
36526 | 110 |
public static final int ACC_MODULE = 0x8000; |
10 | 111 |
|
112 |
/***************************************** |
|
113 |
* Internal compiler flags (no bits in the lower 16). |
|
114 |
*****************************************/ |
|
115 |
||
41637 | 116 |
/** Flag is set if symbol is deprecated. See also DEPRECATED_REMOVAL. |
10 | 117 |
*/ |
118 |
public static final int DEPRECATED = 1<<17; |
|
119 |
||
120 |
/** Flag is set for a variable symbol if the variable's definition |
|
121 |
* has an initializer part. |
|
122 |
*/ |
|
123 |
public static final int HASINIT = 1<<18; |
|
124 |
||
125 |
/** Flag is set for compiler-generated anonymous method symbols |
|
126 |
* that `own' an initializer block. |
|
127 |
*/ |
|
128 |
public static final int BLOCK = 1<<20; |
|
129 |
||
33709 | 130 |
/** Flag bit 21 is available. (used earlier to tag compiler-generated abstract methods that implement |
131 |
* an interface method (Miranda methods)). |
|
10 | 132 |
*/ |
133 |
||
134 |
/** Flag is set for nested classes that do not access instance members |
|
135 |
* or `this' of an outer class and therefore don't need to be passed |
|
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
136 |
* a this$n reference. This value is currently set only for anonymous |
41154
ed8625a2f0f1
8166108: VerifyError passing anonymous inner class to supertype constructor
sadayapalam
parents:
36526
diff
changeset
|
137 |
* classes in superclass constructor calls. |
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
138 |
* todo: use this value for optimizing away this$n parameters in |
10 | 139 |
* other cases. |
140 |
*/ |
|
141 |
public static final int NOOUTERTHIS = 1<<22; |
|
142 |
||
143 |
/** Flag is set for package symbols if a package has a member or |
|
144 |
* directory and therefore exists. |
|
145 |
*/ |
|
146 |
public static final int EXISTS = 1<<23; |
|
147 |
||
148 |
/** Flag is set for compiler-generated compound classes |
|
149 |
* representing multiple variable bounds |
|
150 |
*/ |
|
151 |
public static final int COMPOUND = 1<<24; |
|
152 |
||
153 |
/** Flag is set for class symbols if a class file was found for this class. |
|
154 |
*/ |
|
155 |
public static final int CLASS_SEEN = 1<<25; |
|
156 |
||
157 |
/** Flag is set for class symbols if a source file was found for this |
|
158 |
* class. |
|
159 |
*/ |
|
160 |
public static final int SOURCE_SEEN = 1<<26; |
|
161 |
||
162 |
/* State flags (are reset during compilation). |
|
163 |
*/ |
|
164 |
||
165 |
/** Flag for class symbols is set and later re-set as a lock in |
|
166 |
* Enter to detect cycles in the superclass/superinterface |
|
167 |
* relations. Similarly for constructor call cycle detection in |
|
168 |
* Attr. |
|
169 |
*/ |
|
170 |
public static final int LOCKED = 1<<27; |
|
171 |
||
172 |
/** Flag for class symbols is set and later re-set to indicate that a class |
|
173 |
* has been entered but has not yet been attributed. |
|
174 |
*/ |
|
175 |
public static final int UNATTRIBUTED = 1<<28; |
|
176 |
||
177 |
/** Flag for synthesized default constructors of anonymous classes. |
|
178 |
*/ |
|
179 |
public static final int ANONCONSTR = 1<<29; |
|
180 |
||
181 |
/** Flag for class symbols to indicate it has been checked and found |
|
182 |
* acyclic. |
|
183 |
*/ |
|
184 |
public static final int ACYCLIC = 1<<30; |
|
185 |
||
186 |
/** Flag that marks bridge methods. |
|
187 |
*/ |
|
188 |
public static final long BRIDGE = 1L<<31; |
|
189 |
||
190 |
/** Flag that marks formal parameters. |
|
191 |
*/ |
|
192 |
public static final long PARAMETER = 1L<<33; |
|
193 |
||
194 |
/** Flag that marks varargs methods. |
|
195 |
*/ |
|
196 |
public static final long VARARGS = 1L<<34; |
|
197 |
||
198 |
/** Flag for annotation type symbols to indicate it has been |
|
199 |
* checked and found acyclic. |
|
200 |
*/ |
|
201 |
public static final long ACYCLIC_ANN = 1L<<35; |
|
202 |
||
203 |
/** Flag that marks a generated default constructor. |
|
204 |
*/ |
|
205 |
public static final long GENERATEDCONSTR = 1L<<36; |
|
206 |
||
207 |
/** Flag that marks a hypothetical method that need not really be |
|
208 |
* generated in the binary, but is present in the symbol table to |
|
12335
4725d88691dd
7133185: Update 292 overload resolution logic to match JLS
mcimadamore
parents:
9300
diff
changeset
|
209 |
* simplify checking for erasure clashes - also used for 292 poly sig methods. |
10 | 210 |
*/ |
211 |
public static final long HYPOTHETICAL = 1L<<37; |
|
212 |
||
213 |
/** |
|
5848
c5a4ce47e780
6960407: Potential rebranding issues in openjdk/langtools repository sources
jjg
parents:
5847
diff
changeset
|
214 |
* Flag that marks an internal proprietary class. |
10 | 215 |
*/ |
216 |
public static final long PROPRIETARY = 1L<<38; |
|
217 |
||
5492
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
4870
diff
changeset
|
218 |
/** |
15385 | 219 |
* Flag that marks a multi-catch parameter. |
5492
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
4870
diff
changeset
|
220 |
*/ |
9300
c2de4dd9853b
7033809: Rename "disjunctive" to "union" in javax.lang.model
darcy
parents:
8625
diff
changeset
|
221 |
public static final long UNION = 1L<<39; |
5492
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
4870
diff
changeset
|
222 |
|
33367 | 223 |
// Flag bit (1L << 40) is available. |
6591
a953c8c6b85e
6337171: javac should create bridge methods when type variable bounds restricted
mcimadamore
parents:
5857
diff
changeset
|
224 |
|
7203
1153590927f7
6993963: Project Coin: Use precise exception analysis for effectively final catch parameters
mcimadamore
parents:
7074
diff
changeset
|
225 |
/** |
15385 | 226 |
* Flag that marks an 'effectively final' local variable. |
7203
1153590927f7
6993963: Project Coin: Use precise exception analysis for effectively final catch parameters
mcimadamore
parents:
7074
diff
changeset
|
227 |
*/ |
12335
4725d88691dd
7133185: Update 292 overload resolution logic to match JLS
mcimadamore
parents:
9300
diff
changeset
|
228 |
public static final long EFFECTIVELY_FINAL = 1L<<41; |
7203
1153590927f7
6993963: Project Coin: Use precise exception analysis for effectively final catch parameters
mcimadamore
parents:
7074
diff
changeset
|
229 |
|
8228
4e6ee38974b2
6910550: javac 1.5.0_17 fails with incorrect error message
mcimadamore
parents:
7681
diff
changeset
|
230 |
/** |
15385 | 231 |
* Flag that marks non-override equivalent methods with the same signature. |
8228
4e6ee38974b2
6910550: javac 1.5.0_17 fails with incorrect error message
mcimadamore
parents:
7681
diff
changeset
|
232 |
*/ |
12335
4725d88691dd
7133185: Update 292 overload resolution logic to match JLS
mcimadamore
parents:
9300
diff
changeset
|
233 |
public static final long CLASH = 1L<<42; |
8228
4e6ee38974b2
6910550: javac 1.5.0_17 fails with incorrect error message
mcimadamore
parents:
7681
diff
changeset
|
234 |
|
14267
6321fbe0cf50
7192245: Add parser support for default methods
mcimadamore
parents:
14258
diff
changeset
|
235 |
/** |
16301
b6fd735ea78e
6563143: javac should issue a warning for overriding equals without hashCode
vromero
parents:
15720
diff
changeset
|
236 |
* Flag that marks either a default method or an interface containing default methods. |
14267
6321fbe0cf50
7192245: Add parser support for default methods
mcimadamore
parents:
14258
diff
changeset
|
237 |
*/ |
6321fbe0cf50
7192245: Add parser support for default methods
mcimadamore
parents:
14258
diff
changeset
|
238 |
public static final long DEFAULT = 1L<<43; |
6321fbe0cf50
7192245: Add parser support for default methods
mcimadamore
parents:
14258
diff
changeset
|
239 |
|
14369
3d660d08d1f7
7153951: Add new lint option -Xlint:auxiliaryclass
ohrstrom
parents:
14267
diff
changeset
|
240 |
/** |
3d660d08d1f7
7153951: Add new lint option -Xlint:auxiliaryclass
ohrstrom
parents:
14267
diff
changeset
|
241 |
* Flag that marks class as auxiliary, ie a non-public class following |
3d660d08d1f7
7153951: Add new lint option -Xlint:auxiliaryclass
ohrstrom
parents:
14267
diff
changeset
|
242 |
* the public class in a source file, that could block implicit compilation. |
3d660d08d1f7
7153951: Add new lint option -Xlint:auxiliaryclass
ohrstrom
parents:
14267
diff
changeset
|
243 |
*/ |
14547 | 244 |
public static final long AUXILIARY = 1L<<44; |
14369
3d660d08d1f7
7153951: Add new lint option -Xlint:auxiliaryclass
ohrstrom
parents:
14267
diff
changeset
|
245 |
|
15724 | 246 |
/** |
247 |
* Flag that marks that a symbol is not available in the current profile |
|
248 |
*/ |
|
249 |
public static final long NOT_IN_PROFILE = 1L<<45; |
|
250 |
||
16316 | 251 |
/** |
16301
b6fd735ea78e
6563143: javac should issue a warning for overriding equals without hashCode
vromero
parents:
15720
diff
changeset
|
252 |
* Flag that indicates that an override error has been detected by Check. |
b6fd735ea78e
6563143: javac should issue a warning for overriding equals without hashCode
vromero
parents:
15720
diff
changeset
|
253 |
*/ |
b6fd735ea78e
6563143: javac should issue a warning for overriding equals without hashCode
vromero
parents:
15720
diff
changeset
|
254 |
public static final long BAD_OVERRIDE = 1L<<45; |
b6fd735ea78e
6563143: javac should issue a warning for overriding equals without hashCode
vromero
parents:
15720
diff
changeset
|
255 |
|
18389
a425d0819f36
8016569: javac, add new flag for polymorphic method signatures
vromero
parents:
16803
diff
changeset
|
256 |
/** |
a425d0819f36
8016569: javac, add new flag for polymorphic method signatures
vromero
parents:
16803
diff
changeset
|
257 |
* Flag that indicates a signature polymorphic method (292). |
a425d0819f36
8016569: javac, add new flag for polymorphic method signatures
vromero
parents:
16803
diff
changeset
|
258 |
*/ |
a425d0819f36
8016569: javac, add new flag for polymorphic method signatures
vromero
parents:
16803
diff
changeset
|
259 |
public static final long SIGNATURE_POLYMORPHIC = 1L<<46; |
a425d0819f36
8016569: javac, add new flag for polymorphic method signatures
vromero
parents:
16803
diff
changeset
|
260 |
|
18909
8f9fc5d876e4
8012242: Lambda compatibility and checked exceptions
mcimadamore
parents:
18411
diff
changeset
|
261 |
/** |
20242
11fa75a0b9fb
8024437: Inferring the exception thrown: sometimes fails to compile
vromero
parents:
19930
diff
changeset
|
262 |
* Flag that indicates that an inference variable is used in a 'throws' clause. |
18909
8f9fc5d876e4
8012242: Lambda compatibility and checked exceptions
mcimadamore
parents:
18411
diff
changeset
|
263 |
*/ |
8f9fc5d876e4
8012242: Lambda compatibility and checked exceptions
mcimadamore
parents:
18411
diff
changeset
|
264 |
public static final long THROWS = 1L<<47; |
8f9fc5d876e4
8012242: Lambda compatibility and checked exceptions
mcimadamore
parents:
18411
diff
changeset
|
265 |
|
19914 | 266 |
/** |
267 |
* Flag that marks potentially ambiguous overloads |
|
268 |
*/ |
|
269 |
public static final long POTENTIALLY_AMBIGUOUS = 1L<<48; |
|
270 |
||
21477 | 271 |
/** |
272 |
* Flag that marks a synthetic method body for a lambda expression |
|
273 |
*/ |
|
274 |
public static final long LAMBDA_METHOD = 1L<<49; |
|
275 |
||
25007 | 276 |
/** |
277 |
* Flag to control recursion in TransTypes |
|
278 |
*/ |
|
279 |
public static final long TYPE_TRANSLATED = 1L<<50; |
|
280 |
||
36526 | 281 |
/** |
282 |
* Flag to indicate class symbol is for module-info |
|
283 |
*/ |
|
284 |
public static final long MODULE = 1L<<51; |
|
285 |
||
286 |
/** |
|
287 |
* Flag to indicate the given ModuleSymbol is an automatic module. |
|
288 |
*/ |
|
58713
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
289 |
public static final long AUTOMATIC_MODULE = 1L<<52; //ModuleSymbols only |
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
290 |
|
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
291 |
/** |
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
292 |
* Flag to indicate the given PackageSymbol contains any non-.java and non-.class resources. |
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
293 |
*/ |
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
294 |
public static final long HAS_RESOURCE = 1L<<52; //PackageSymbols only |
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
295 |
|
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
296 |
/** |
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
297 |
* Flag to indicate the given ParamSymbol has a user-friendly name filled. |
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
298 |
*/ |
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
299 |
public static final long NAME_FILLED = 1L<<52; //ParamSymbols only |
36526 | 300 |
|
301 |
/** |
|
302 |
* Flag to indicate the given ModuleSymbol is a system module. |
|
303 |
*/ |
|
304 |
public static final long SYSTEM_MODULE = 1L<<53; |
|
305 |
||
41637 | 306 |
/** |
42407
f3702cff2933
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41637
diff
changeset
|
307 |
* Flag to indicate the given symbol has a @Deprecated annotation. |
f3702cff2933
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41637
diff
changeset
|
308 |
*/ |
f3702cff2933
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41637
diff
changeset
|
309 |
public static final long DEPRECATED_ANNOTATION = 1L<<54; |
f3702cff2933
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41637
diff
changeset
|
310 |
|
f3702cff2933
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41637
diff
changeset
|
311 |
/** |
41637 | 312 |
* Flag to indicate the given symbol has been deprecated and marked for removal. |
313 |
*/ |
|
42407
f3702cff2933
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41637
diff
changeset
|
314 |
public static final long DEPRECATED_REMOVAL = 1L<<55; |
f3702cff2933
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41637
diff
changeset
|
315 |
|
f3702cff2933
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41637
diff
changeset
|
316 |
/** |
58713
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
317 |
* Flag to indicate the API element in question is for a preview API. |
42407
f3702cff2933
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41637
diff
changeset
|
318 |
*/ |
58713
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
319 |
public static final long PREVIEW_API = 1L<<56; //any Symbol kind |
41637 | 320 |
|
47248 | 321 |
/** |
322 |
* Flag for synthesized default constructors of anonymous classes that have an enclosing expression. |
|
323 |
*/ |
|
324 |
public static final long ANONCONSTR_BASED = 1L<<57; |
|
325 |
||
49280
c2a3a2aa2475
8194978: Javac produces dead code for try-with-resource
jlahoda
parents:
47248
diff
changeset
|
326 |
/** |
c2a3a2aa2475
8194978: Javac produces dead code for try-with-resource
jlahoda
parents:
47248
diff
changeset
|
327 |
* Flag that marks finalize block as body-only, should not be copied into catch clauses. |
c2a3a2aa2475
8194978: Javac produces dead code for try-with-resource
jlahoda
parents:
47248
diff
changeset
|
328 |
* Used to implement try-with-resources. |
c2a3a2aa2475
8194978: Javac produces dead code for try-with-resource
jlahoda
parents:
47248
diff
changeset
|
329 |
*/ |
c2a3a2aa2475
8194978: Javac produces dead code for try-with-resource
jlahoda
parents:
47248
diff
changeset
|
330 |
public static final long BODY_ONLY_FINALIZE = 1L<<17; //blocks only |
c2a3a2aa2475
8194978: Javac produces dead code for try-with-resource
jlahoda
parents:
47248
diff
changeset
|
331 |
|
54514
b0651dcc8d98
8217047: Provide a way to inject missing parameter names
jlahoda
parents:
51883
diff
changeset
|
332 |
/** |
58713
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
333 |
* Flag to indicate the API element in question is for a preview API. |
54514
b0651dcc8d98
8217047: Provide a way to inject missing parameter names
jlahoda
parents:
51883
diff
changeset
|
334 |
*/ |
58713
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
335 |
public static final long PREVIEW_ESSENTIAL_API = 1L<<58; //any Symbol kind |
54514
b0651dcc8d98
8217047: Provide a way to inject missing parameter names
jlahoda
parents:
51883
diff
changeset
|
336 |
|
10 | 337 |
/** Modifier masks. |
338 |
*/ |
|
339 |
public static final int |
|
340 |
AccessFlags = PUBLIC | PROTECTED | PRIVATE, |
|
341 |
LocalClassFlags = FINAL | ABSTRACT | STRICTFP | ENUM | SYNTHETIC, |
|
342 |
MemberClassFlags = LocalClassFlags | INTERFACE | AccessFlags, |
|
343 |
ClassFlags = LocalClassFlags | INTERFACE | PUBLIC | ANNOTATION, |
|
344 |
InterfaceVarFlags = FINAL | STATIC | PUBLIC, |
|
345 |
VarFlags = AccessFlags | FINAL | STATIC | |
|
346 |
VOLATILE | TRANSIENT | ENUM, |
|
347 |
ConstructorFlags = AccessFlags, |
|
348 |
InterfaceMethodFlags = ABSTRACT | PUBLIC, |
|
349 |
MethodFlags = AccessFlags | ABSTRACT | STATIC | NATIVE | |
|
350 |
SYNCHRONIZED | FINAL | STRICTFP; |
|
351 |
public static final long |
|
14267
6321fbe0cf50
7192245: Add parser support for default methods
mcimadamore
parents:
14258
diff
changeset
|
352 |
ExtendedStandardFlags = (long)StandardFlags | DEFAULT, |
19930
b6181c0049f3
8022322: Reject default and static methods in annotation
emc
parents:
19914
diff
changeset
|
353 |
ModifierFlags = ((long)StandardFlags & ~INTERFACE) | DEFAULT, |
29293
1583c6dd6df7
8071453: Allow interface methods to be private
sadayapalam
parents:
25874
diff
changeset
|
354 |
InterfaceMethodMask = ABSTRACT | PRIVATE | STATIC | PUBLIC | STRICTFP | DEFAULT, |
21895
2afdc45dcc5b
8028428: strictfp allowed as annotation element modifier
jfranck
parents:
21477
diff
changeset
|
355 |
AnnotationTypeElementMask = ABSTRACT | PUBLIC, |
24903
41e1812d6b4c
8027886: javac allows illegal receiver parameters
pgovereau
parents:
24793
diff
changeset
|
356 |
LocalVarFlags = FINAL | PARAMETER, |
41e1812d6b4c
8027886: javac allows illegal receiver parameters
pgovereau
parents:
24793
diff
changeset
|
357 |
ReceiverParamFlags = PARAMETER; |
24793
bb58a9f1ae10
8044487: Fix for 8042785 causes regression tests to fail with java.lang.VerifyError
vromero
parents:
24792
diff
changeset
|
358 |
|
10 | 359 |
|
360 |
public static Set<Modifier> asModifierSet(long flags) { |
|
361 |
Set<Modifier> modifiers = modifierSets.get(flags); |
|
362 |
if (modifiers == null) { |
|
363 |
modifiers = java.util.EnumSet.noneOf(Modifier.class); |
|
364 |
if (0 != (flags & PUBLIC)) modifiers.add(Modifier.PUBLIC); |
|
365 |
if (0 != (flags & PROTECTED)) modifiers.add(Modifier.PROTECTED); |
|
366 |
if (0 != (flags & PRIVATE)) modifiers.add(Modifier.PRIVATE); |
|
367 |
if (0 != (flags & ABSTRACT)) modifiers.add(Modifier.ABSTRACT); |
|
368 |
if (0 != (flags & STATIC)) modifiers.add(Modifier.STATIC); |
|
369 |
if (0 != (flags & FINAL)) modifiers.add(Modifier.FINAL); |
|
370 |
if (0 != (flags & TRANSIENT)) modifiers.add(Modifier.TRANSIENT); |
|
371 |
if (0 != (flags & VOLATILE)) modifiers.add(Modifier.VOLATILE); |
|
372 |
if (0 != (flags & SYNCHRONIZED)) |
|
373 |
modifiers.add(Modifier.SYNCHRONIZED); |
|
374 |
if (0 != (flags & NATIVE)) modifiers.add(Modifier.NATIVE); |
|
375 |
if (0 != (flags & STRICTFP)) modifiers.add(Modifier.STRICTFP); |
|
16803 | 376 |
if (0 != (flags & DEFAULT)) modifiers.add(Modifier.DEFAULT); |
10 | 377 |
modifiers = Collections.unmodifiableSet(modifiers); |
378 |
modifierSets.put(flags, modifiers); |
|
379 |
} |
|
380 |
return modifiers; |
|
381 |
} |
|
382 |
||
383 |
// Cache of modifier sets. |
|
22163 | 384 |
private static final Map<Long, Set<Modifier>> modifierSets = new ConcurrentHashMap<>(64); |
10 | 385 |
|
386 |
public static boolean isStatic(Symbol symbol) { |
|
387 |
return (symbol.flags() & STATIC) != 0; |
|
388 |
} |
|
389 |
||
390 |
public static boolean isEnum(Symbol symbol) { |
|
391 |
return (symbol.flags() & ENUM) != 0; |
|
392 |
} |
|
393 |
||
394 |
public static boolean isConstant(Symbol.VarSymbol symbol) { |
|
395 |
return symbol.getConstValue() != null; |
|
396 |
} |
|
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
397 |
|
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
398 |
|
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
399 |
public enum Flag { |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
400 |
PUBLIC(Flags.PUBLIC), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
401 |
PRIVATE(Flags.PRIVATE), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
402 |
PROTECTED(Flags.PROTECTED), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
403 |
STATIC(Flags.STATIC), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
404 |
FINAL(Flags.FINAL), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
405 |
SYNCHRONIZED(Flags.SYNCHRONIZED), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
406 |
VOLATILE(Flags.VOLATILE), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
407 |
TRANSIENT(Flags.TRANSIENT), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
408 |
NATIVE(Flags.NATIVE), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
409 |
INTERFACE(Flags.INTERFACE), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
410 |
ABSTRACT(Flags.ABSTRACT), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
411 |
DEFAULT(Flags.DEFAULT), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
412 |
STRICTFP(Flags.STRICTFP), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
413 |
BRIDGE(Flags.BRIDGE), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
414 |
SYNTHETIC(Flags.SYNTHETIC), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
415 |
ANNOTATION(Flags.ANNOTATION), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
416 |
DEPRECATED(Flags.DEPRECATED), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
417 |
HASINIT(Flags.HASINIT), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
418 |
BLOCK(Flags.BLOCK), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
419 |
ENUM(Flags.ENUM), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
420 |
MANDATED(Flags.MANDATED), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
421 |
NOOUTERTHIS(Flags.NOOUTERTHIS), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
422 |
EXISTS(Flags.EXISTS), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
423 |
COMPOUND(Flags.COMPOUND), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
424 |
CLASS_SEEN(Flags.CLASS_SEEN), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
425 |
SOURCE_SEEN(Flags.SOURCE_SEEN), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
426 |
LOCKED(Flags.LOCKED), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
427 |
UNATTRIBUTED(Flags.UNATTRIBUTED), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
428 |
ANONCONSTR(Flags.ANONCONSTR), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
429 |
ACYCLIC(Flags.ACYCLIC), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
430 |
PARAMETER(Flags.PARAMETER), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
431 |
VARARGS(Flags.VARARGS), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
432 |
ACYCLIC_ANN(Flags.ACYCLIC_ANN), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
433 |
GENERATEDCONSTR(Flags.GENERATEDCONSTR), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
434 |
HYPOTHETICAL(Flags.HYPOTHETICAL), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
435 |
PROPRIETARY(Flags.PROPRIETARY), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
436 |
UNION(Flags.UNION), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
437 |
EFFECTIVELY_FINAL(Flags.EFFECTIVELY_FINAL), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
438 |
CLASH(Flags.CLASH), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
439 |
AUXILIARY(Flags.AUXILIARY), |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
440 |
NOT_IN_PROFILE(Flags.NOT_IN_PROFILE), |
18909
8f9fc5d876e4
8012242: Lambda compatibility and checked exceptions
mcimadamore
parents:
18411
diff
changeset
|
441 |
BAD_OVERRIDE(Flags.BAD_OVERRIDE), |
8f9fc5d876e4
8012242: Lambda compatibility and checked exceptions
mcimadamore
parents:
18411
diff
changeset
|
442 |
SIGNATURE_POLYMORPHIC(Flags.SIGNATURE_POLYMORPHIC), |
21477 | 443 |
THROWS(Flags.THROWS), |
25007 | 444 |
LAMBDA_METHOD(Flags.LAMBDA_METHOD), |
36526 | 445 |
TYPE_TRANSLATED(Flags.TYPE_TRANSLATED), |
41637 | 446 |
MODULE(Flags.MODULE), |
42407
f3702cff2933
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41637
diff
changeset
|
447 |
AUTOMATIC_MODULE(Flags.AUTOMATIC_MODULE), |
f3702cff2933
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41637
diff
changeset
|
448 |
SYSTEM_MODULE(Flags.SYSTEM_MODULE), |
f3702cff2933
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41637
diff
changeset
|
449 |
DEPRECATED_ANNOTATION(Flags.DEPRECATED_ANNOTATION), |
f3702cff2933
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41637
diff
changeset
|
450 |
DEPRECATED_REMOVAL(Flags.DEPRECATED_REMOVAL), |
51883 | 451 |
HAS_RESOURCE(Flags.HAS_RESOURCE), |
452 |
POTENTIALLY_AMBIGUOUS(Flags.POTENTIALLY_AMBIGUOUS), |
|
54514
b0651dcc8d98
8217047: Provide a way to inject missing parameter names
jlahoda
parents:
51883
diff
changeset
|
453 |
ANONCONSTR_BASED(Flags.ANONCONSTR_BASED), |
58713
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
454 |
NAME_FILLED(Flags.NAME_FILLED), |
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
455 |
PREVIEW_API(Flags.PREVIEW_API), |
ad69fd32778e
8226585: Improve javac messages for using a preview API
jlahoda
parents:
54514
diff
changeset
|
456 |
PREVIEW_ESSENTIAL_API(Flags.PREVIEW_ESSENTIAL_API); |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
457 |
|
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
458 |
Flag(long flag) { |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
459 |
this.value = flag; |
22153
f9f06fcca59d
8029800: Flags.java uses String.toLowerCase without specifying Locale
jlahoda
parents:
21895
diff
changeset
|
460 |
this.lowercaseName = StringUtils.toLowerCase(name()); |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
461 |
} |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
462 |
|
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
463 |
@Override |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
464 |
public String toString() { |
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
465 |
return lowercaseName; |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
466 |
} |
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
467 |
|
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
468 |
final long value; |
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
469 |
final String lowercaseName; |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
10
diff
changeset
|
470 |
} |
18411
58e11c41d705
8006981: javac, method toString() of class ...javac.code.Flags doesn't print all the flag bits
vromero
parents:
18389
diff
changeset
|
471 |
|
10 | 472 |
} |