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
This commit is contained in:
parent
094bb856e6
commit
86bcd3a224
5 changed files with 47 additions and 2 deletions
13
libjava/testsuite/libjava.compile/pr25429.java
Normal file
13
libjava/testsuite/libjava.compile/pr25429.java
Normal file
|
@ -0,0 +1,13 @@
|
|||
public class pr25429
|
||||
{
|
||||
private static final int CONST = 0;
|
||||
class I {
|
||||
public void f () {
|
||||
switch(0) {
|
||||
case CONST:
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) { }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue