gcc/libjava/testsuite/libjava.compile/rh175833.java
Tom Tromey 86bcd3a224 re PR java/25429 (can't see private static final int CREATE = 1)
gcc/java:
	PR java/25429
	* parse.y (resolve_expression_name): Don't generate accessor
	methods for constant fields.
libjava:
	* testsuite/libjava.compile/rh175833.java: New file.
	* testsuite/libjava.compile/pr25429.java: New file.

Co-Authored-By: Andrew Haley <aph@redhat.com>

From-SVN: r108608
2005-12-16 00:00:43 +00:00

14 lines
258 B
Java

// Follow-on to PR 25429
public class rh175833
{
private static final Object CONST = new Object();
class I {
public Object f () {
// We need an accessor here.
return CONST;
}
}
public static void main(String[] args) { }
}