diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2004-08-02 21:20:46 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2004-08-02 22:20:46 +0100 |
commit | 899deeca6c931c4f4a21e73d40b623346d632fe9 (patch) | |
tree | 489c5ba70ebca4a8c68b6e6cfbbc6dd6343b586b /libjava | |
parent | 4c24b21a47dc8d146c8e4699e4b5a593a00fd9a9 (diff) | |
download | gcc-899deeca6c931c4f4a21e73d40b623346d632fe9.zip gcc-899deeca6c931c4f4a21e73d40b623346d632fe9.tar.gz gcc-899deeca6c931c4f4a21e73d40b623346d632fe9.tar.bz2 |
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
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/testsuite/libjava.compile/PR16701.java | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 2897329..81922f2 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2004-08-02 Bryce McKinlay <mckinlay@redhat.com> + + * testsuite/libjava.compile/PR16701.java: New test. + 2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/Collection.java, java/util/List.java, diff --git a/libjava/testsuite/libjava.compile/PR16701.java b/libjava/testsuite/libjava.compile/PR16701.java new file mode 100644 index 0000000..60d459a --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR16701.java @@ -0,0 +1,10 @@ +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; +} |