blob: b733ef8b5cf1980faf70243892bdd836dfd3c955 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 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
* http://www.eclipse.org/legal/epl-v10.html
*
* 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;
}
}