equal
deleted
inserted
replaced
1205 throw new AssertionError(); |
1205 throw new AssertionError(); |
1206 } |
1206 } |
1207 long illegal = flags & ExtendedStandardFlags & ~mask; |
1207 long illegal = flags & ExtendedStandardFlags & ~mask; |
1208 if (illegal != 0) { |
1208 if (illegal != 0) { |
1209 if ((illegal & INTERFACE) != 0) { |
1209 if ((illegal & INTERFACE) != 0) { |
1210 log.error(pos, Errors.IntfNotAllowedHere); |
1210 log.error(pos, ((flags & ANNOTATION) != 0) ? Errors.AnnotationDeclNotAllowedHere : Errors.IntfNotAllowedHere); |
1211 mask |= INTERFACE; |
1211 mask |= INTERFACE; |
1212 } |
1212 } |
1213 else { |
1213 else { |
1214 log.error(pos, |
1214 log.error(pos, |
1215 Errors.ModNotAllowedHere(asFlagSet(illegal))); |
1215 Errors.ModNotAllowedHere(asFlagSet(illegal))); |