langtools/test/tools/javac/scope/7046348/EagerInterfaceCompletionTest.java
changeset 22167 e0ba35f27975
parent 14443 91c05eb19277
child 30730 d3ce7619db2c
equal deleted inserted replaced
22166:adc980c0dbcc 22167:e0ba35f27975
     1 /*
     1 /*
     2  * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2013, 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.
     7  * published by the Free Software Foundation.
   179                 case ACCESS_ONLY:
   179                 case ACCESS_ONLY:
   180                 case CONSTR: return ak == ActionKind.REMOVE_B;
   180                 case CONSTR: return ak == ActionKind.REMOVE_B;
   181                 case FIELD:
   181                 case FIELD:
   182                 case SUPER: return true;
   182                 case SUPER: return true;
   183                 case METHOD: return hk != HierarchyKind.INTERFACE || ak == ActionKind.REMOVE_B ||
   183                 case METHOD: return hk != HierarchyKind.INTERFACE || ak == ActionKind.REMOVE_B ||
   184                         (hk == HierarchyKind.INTERFACE && ak == ActionKind.REMOVE_A && vk == VersionKind.LAMBDA);
   184                         (hk == HierarchyKind.INTERFACE && ak == ActionKind.REMOVE_A);
   185                 default: throw new AssertionError("Unexpected test kind " + this);
   185                 default: throw new AssertionError("Unexpected test kind " + this);
   186             }
   186             }
   187         }
   187         }
   188     }
   188     }
   189 
   189