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 22045 Details for
Bug 97494
[1.5][compiler] Inappropriate error level and message for generic type mismatch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Batch compiler test case that shows the problem
patch_org.eclipse.jdt.core.tests.compiler_97494_01.txt (text/plain), 1.43 KB, created by
Maxime Daniel
on 2005-05-31 10:44:48 EDT
(
hide
)
Description:
Batch compiler test case that shows the problem
Filename:
MIME Type:
Creator:
Maxime Daniel
Created:
2005-05-31 10:44:48 EDT
Size:
1.43 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java,v >retrieving revision 1.16 >diff -u -r1.16 BatchCompilerTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java 26 May 2005 19:43:04 -0000 1.16 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java 31 May 2005 14:43:29 -0000 >@@ -1562,6 +1562,24 @@ > "incorrect classpath: dummy\n", > false); > } >+// Generics: wrong error level and message - https://bugs.eclipse.org/bugs/show_bug.cgi?id=97494 >+public void _test029(){ >+ this.runNegativeTest( >+ new String[] { >+ "X.java", >+ "/** */\n" + >+ "public class X<T> {\n" + >+ " protected static final Class<X<?>> theClass = (Class<X<?>>) X.class;\n" + >+ "}\n" >+ }, >+ "\"" + OUTPUT_DIR + File.separator + "X.java\"" >+ + " -1.5 -g -preserveAllLocals" >+ + " -verbose -warn:+deprecation,syntheticAccess,uselessTypeCheck,unsafe,finalBound,unusedLocal" >+ + " -proceedOnError -referenceInfo -d \"" + OUTPUT_DIR + "\"", >+ "", >+ "ERROR", // replace with javac-like message when it is available >+ true); >+} > public static Class testClass() { > return BatchCompilerTest.class; > }
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 97494
: 22045