langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassReader.java
equal
deleted
inserted
replaced
1297 int numAttributes = nextChar(); |
1297 int numAttributes = nextChar(); |
1298 if (numAttributes != 0) { |
1298 if (numAttributes != 0) { |
1299 ListBuffer<CompoundAnnotationProxy> proxies = new ListBuffer<>(); |
1299 ListBuffer<CompoundAnnotationProxy> proxies = new ListBuffer<>(); |
1300 for (int i = 0; i<numAttributes; i++) { |
1300 for (int i = 0; i<numAttributes; i++) { |
1301 CompoundAnnotationProxy proxy = readCompoundAnnotation(); |
1301 CompoundAnnotationProxy proxy = readCompoundAnnotation(); |
1302 if (proxy.type.tsym == syms.proprietaryType.tsym) |
1302 proxies.append(proxy); |
1303 sym.flags_field |= PROPRIETARY; |
|
1304 else if (proxy.type.tsym == syms.profileType.tsym) { |
|
1305 if (profile != Profile.DEFAULT) { |
|
1306 for (Pair<Name,Attribute> v: proxy.values) { |
|
1307 if (v.fst == names.value && v.snd instanceof Attribute.Constant) { |
|
1308 Attribute.Constant c = (Attribute.Constant) v.snd; |
|
1309 if (c.type == syms.intType && ((Integer) c.value) > profile.value) { |
|
1310 sym.flags_field |= NOT_IN_PROFILE; |
|
1311 } |
|
1312 } |
|
1313 } |
|
1314 } |
|
1315 } else |
|
1316 proxies.append(proxy); |
|
1317 } |
1303 } |
1318 annotate.normal(new AnnotationCompleter(sym, proxies.toList())); |
1304 annotate.normal(new AnnotationCompleter(sym, proxies.toList())); |
1319 } |
1305 } |
1320 } |
1306 } |
1321 |
1307 |