}
}
// JLS3 6.5.2.BL1.B1.B2.2 Static field imported through static-import-on-demand.
{
IField importedField = null;
for (Iterator it = this.staticImportsOnDemand.iterator(); it.hasNext();) {
IClass iClass = (IClass) it.next();
IField f = iClass.getDeclaredIField(identifier);
if (f != null) {
// JLS3 7.5.4 Static-Import-on-Demand Declaration
if (!UnitCompiler.this.isAccessible(f, enclosingBlockStatement)) continue;
if (importedField != null) {
UnitCompiler.this.compileError(
"Ambiguous static field import: \""
+ importedField.toString()
+ "\" vs. \""
+ f.toString()
+ "\""
);
}
importedField = f;
}