diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-06 02:30:11 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-06 02:30:11 +0000 |
commit | 0811bc7e12bccb801de8d103c76730a220c73a55 (patch) | |
tree | a94ad68a1bc363fe0d5f65f9015afcd186f544ff /libjava | |
parent | 77ce8de7f3a49982e515a9a7a78aeaaa63f1dd0d (diff) | |
download | gcc-0811bc7e12bccb801de8d103c76730a220c73a55.tar.gz |
gcc/java:
* parse.y (patch_new_array_init): Don't set length on array.
libjava:
* testsuite/libjava.compile/rh174912.java: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108099 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/testsuite/libjava.compile/rh174912.java | 17 |
2 files changed, 21 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 24eed17c47e..c920ffe595d 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2005-12-05 Tom Tromey <tromey@redhat.com> + + * testsuite/libjava.compile/rh174912.java: New file. + 2005-12-01 Geoffrey Keating <geoffk@apple.com> * testsuite/lib/libjava.exp (test_libjava_from_javac): Support diff --git a/libjava/testsuite/libjava.compile/rh174912.java b/libjava/testsuite/libjava.compile/rh174912.java new file mode 100644 index 00000000000..65c1bf574ab --- /dev/null +++ b/libjava/testsuite/libjava.compile/rh174912.java @@ -0,0 +1,17 @@ +// Derived from Red Hat bugzilla 174912 +// https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=174912 +// The bug is that the anonymous class constructor here will end up +// with a bogus '[3C' in its signature. + +public class rh174912 { + public rh174912(char[][] args) { } + + public Object m() { + return new rh174912(new char[][] { "hi".toCharArray(), + "bob".toCharArray(), + "and joe".toCharArray() }) { + }; + } + + public static void main(String[] args) { } +} |