Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 17229 Details for
Bug 83032
VerifyError for anonymous declaration using variable arguments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD of jdt.core compiler tests project
patch_83032_tests.txt (text/plain), 1.47 KB, created by
Olivier Thomann
on 2005-01-17 21:59:34 EST
(
hide
)
Description:
Apply on HEAD of jdt.core compiler tests project
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-01-17 21:59:34 EST
Size:
1.47 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/compiler/regression/VarargsTest.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/VarargsTest.java,v >retrieving revision 1.11 >diff -u -r1.11 VarargsTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/VarargsTest.java 14 Jan 2005 17:23:43 -0000 1.11 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/VarargsTest.java 18 Jan 2005 02:48:15 -0000 >@@ -900,5 +900,36 @@ > "}\n", > }, > ""); >- } >+ } >+ >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=83032 >+ public void test022() { >+ this.runConformTest( >+ new String[] { >+ "X.java", >+ "public class X {\n" + >+ " String[] args;\n" + >+ " public X(String... args) {\n" + >+ " this.args = args;\n" + >+ " }\n" + >+ " public static X foo() {\n" + >+ " return new X(\"SU\", \"C\", \"CE\", \"SS\"){};\n" + >+ " }\n" + >+ " public String bar() {\n" + >+ " if (this.args != null) {\n" + >+ " StringBuffer buffer = new StringBuffer();\n" + >+ " for (String s : this.args) {\n" + >+ " buffer.append(s);\n" + >+ " }\n" + >+ " return String.valueOf(buffer);\n" + >+ " }\n" + >+ " return null;\n" + >+ " }\n" + >+ " public static void main(String[] args) {\n" + >+ " System.out.print(foo().bar());\n" + >+ " }\n" + >+ "}\n", >+ }, >+ "SUCCESS"); >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 83032
:
17217
|
17228
| 17229