gcc/libjava/testsuite/libjava.compile/PR16701.java
Bryce McKinlay 899deeca6c re PR java/16701 (Error when constant initializer depends on another constant with restricted access)
2004-08-02  Bryce McKinlay  <mckinlay@redhat.com>

	PR java/16701
	* parse.y (fold_constant_for_init): Call resolve_field_access with
	correct current_class context.

2004-08-02  Bryce McKinlay  <mckinlay@redhat.com>

	* testsuite/libjava.compile/PR16701.java: New test.

From-SVN: r85453
2004-08-02 22:20:46 +01:00

11 lines
191 B
Java

class Cl
{
private static final int CONSTANT1 = 0x001;
public static final int CONSTANT2 = 0x002 >> CONSTANT1;
}
public class PR16701
{
public static final int VALUE = Cl.CONSTANT2;
}