blob: 23895c44e0d9c83abd856118003007a7c98918e1 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package x.y.z;
import f.FieldUsageClass;
/**
* Tests field usage, where the accessed field is tagged with a noreference tag
*/
public class testF4 {
/**
* Constructor
*/
public testF4() {
FieldUsageClass.inner c = new FieldUsageClass.inner();
int f3 = FieldUsageClass.inner.f3;
int f4 = c.f4;
}
public static class inner {
/**
* Constructor
*/
public inner() {
FieldUsageClass.inner c = new FieldUsageClass.inner();
int f3 = FieldUsageClass.inner.f3;
int f4 = c.f4;
}
}
class inner2 {
/**
* Constructor
*/
public inner2() {
FieldUsageClass.inner c = new FieldUsageClass.inner();
int f3 = FieldUsageClass.inner.f3;
int f4 = c.f4;
}
}
}
class outer {
/**
* Constructor
*/
public outer() {
FieldUsageClass.inner c = new FieldUsageClass.inner();
int f3 = FieldUsageClass.inner.f3;
int f4 = c.f4;
}
}