blob: f16144ec086c8d30b377cf46e618441a622555d3 [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 testF3 {
/**
* Constructor
*/
public testF3() {
FieldUsageClass c = new FieldUsageClass();
int f3 = FieldUsageClass.f3;
int f4 = c.f4;
}
public static class inner {
/**
* Constructor
*/
public inner() {
FieldUsageClass c = new FieldUsageClass();
int f3 = FieldUsageClass.f3;
int f4 = c.f4;
}
}
class inner2 {
/**
* Constructor
*/
public inner2() {
FieldUsageClass c = new FieldUsageClass();
int f3 = FieldUsageClass.f3;
int f4 = c.f4;
}
}
}
class outer {
/**
* Constructor
*/
public outer() {
FieldUsageClass c = new FieldUsageClass();
int f3 = FieldUsageClass.f3;
int f4 = c.f4;
}
}