langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java
changeset 45867 ca77ebd05a06
parent 45758 b2a0122861f5
child 45910 c7092e4591b2
equal deleted inserted replaced
45866:5070422dda41 45867:ca77ebd05a06
  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)));