c6a25d3a3d
PR java/12374: * parse.y (qualify_ambiguous_name): Remove lots of broken field access processing - there's no need to do that here, because we have resolve_field_access. Remove RESOLVE_EXPRESSION_NAME_P as it isn't used anywhere else. * java-tree.h: Remove RESOLVE_EXPRESSION_NAME_P as it isn't used. From-SVN: r74217
28 lines
457 B
Java
28 lines
457 B
Java
public class PR12374 {
|
|
|
|
/* We weren't coping with field refs on a string constant... */
|
|
|
|
Object Foo()
|
|
{
|
|
return "".CASE_INSENSITIVE_ORDER;
|
|
}
|
|
|
|
/* Special casing access to array.length while analysing syntax is
|
|
evil. Especially when it means we can't cope with a type
|
|
called length. */
|
|
|
|
class length
|
|
{
|
|
static final int i = 2;
|
|
}
|
|
|
|
int bar()
|
|
{
|
|
return length.i;
|
|
}
|
|
|
|
public static void main (String[] argv)
|
|
{
|
|
}
|
|
}
|