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 22763 Details for
Bug 99260
[1.5][compiler] Bad bytecode generated with varargs + generics
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD
patch_99260_tests.txt (text/plain), 2.19 KB, created by
Olivier Thomann
on 2005-06-09 19:54:56 EDT
(
hide
)
Description:
Apply on HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-06-09 19:54:56 EDT
Size:
2.19 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.23 >diff -u -r1.23 VarargsTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/VarargsTest.java 29 Apr 2005 10:36:40 -0000 1.23 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/VarargsTest.java 9 Jun 2005 23:55:00 -0000 >@@ -20,11 +20,11 @@ > > // Static initializer to specify tests subset using TESTS_* static variables > // All specified tests which does not belong to the class are skipped... >-// static { >+ static { > // TESTS_NAMES = new String[] { "test000" }; >-// TESTS_NUMBERS = new int[] { 24, 25 }; >+// TESTS_NUMBERS = new int[] { 30 }; > // TESTS_RANGE = new int[] { 11, -1 }; >-// } >+ } > public static Test suite() { > Test suite = buildTestSuite(testClass()); > TESTS_COUNTERS.put(testClass().getName(), new Integer(suite.countTestCases())); >@@ -1134,5 +1134,33 @@ > " ^^^^\n" + > "Zork cannot be resolved to a type\n" + > "----------\n"); >- } >+ } >+ >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=99260 >+ public void test030() { >+ this.runConformTest( >+ new String[] { >+ "X.java", >+ "import java.io.Serializable;\n" + >+ "public class X {\n" + >+ " public static void main(String[] args) {\n" + >+ " audit(\"osvaldo\", \"localhost\", \"logged\", \"X\", new Integer(0));\n" + >+ " audit(\"osvaldo\", \"localhost\", \"logged\", \"X\", \"Y\");\n" + >+ " audit(\"osvaldo\", \"localhost\", \"logged\", new Float(0), new java.awt.Point(0, 0));\n" + >+ " }\n" + >+ " public static <A extends Serializable> void audit(String login,\n" + >+ " String address, String event, A... args) {\n" + >+ " for (A a : args) {\n" + >+ " System.out.println(a.getClass());\n" + >+ " }\n" + >+ " }\n" + >+ "}", >+ }, >+ "class java.lang.String\n" + >+ "class java.lang.Integer\n" + >+ "class java.lang.String\n" + >+ "class java.lang.String\n" + >+ "class java.lang.Float\n" + >+ "class java.awt.Point"); >+ } > }
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 99260
:
22762
| 22763 |
22764