Community
Participate
Working Groups
package defaultMethods_in;
public interface A_test5 {
default int foo() {
/*[*/return 0;/*]*/
}
static int foo() {
return 0;
package defaultMethods_out;
return extracted();
static int extracted() {
/*******************************************************************************
* Copyright (c) 2013 IBM Corporation and others.
* Copyright (c) 2013, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
defaultMethodsTest(1, Modifier.PUBLIC);
public void test5() throws Exception {
defaultMethodsTest(0, Modifier.PUBLIC);
//====================================================================================
// Testing Static Methods
* Copyright (c) 2000, 2013 IBM Corporation and others.
* Copyright (c) 2000, 2014 IBM Corporation and others.
currentParent= currentParent.getParent();
} while (!shouldBeStatic && currentParent != null && currentParent != fDestination);
if (shouldBeStatic || fAnalyzer.getForceStatic()) {
if (shouldBeStatic || fAnalyzer.getForceStatic() || forceStatic()) {
modifiers|= Modifier.STATIC;
} else if (isDestinationInterface) {
modifiers|= Modifier.DEFAULT;