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 21893 Details for
Bug 96974
[5.0] @SuppressWarnings({"nls"}) does not work for unexternalized strings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD of org.eclipse.jdt.core.tests.compiler
patch_96974_tests.txt (text/plain), 1.14 KB, created by
Olivier Thomann
on 2005-05-27 12:08:41 EDT
(
hide
)
Description:
Apply on HEAD of org.eclipse.jdt.core.tests.compiler
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-05-27 12:08:41 EDT
Size:
1.14 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java,v >retrieving revision 1.96 >diff -u -r1.96 AnnotationTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java 26 May 2005 20:23:23 -0000 1.96 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java 27 May 2005 16:08:11 -0000 >@@ -4699,5 +4699,24 @@ > "}\n", > }, > ""); >- } >+ } >+ >+ //https://bugs.eclipse.org/bugs/show_bug.cgi?id=96974 >+ public void test147() { >+ Map options = this.getCompilerOptions(); >+ options.put(CompilerOptions.OPTION_ReportNonExternalizedStringLiteral, CompilerOptions.WARNING); >+ this.runNegativeTest( >+ new String[] { >+ "X.java", >+ "@SuppressWarnings({\"nls\"})\n" + >+ "public class X<T> {\n" + >+ " String test= \"\";\n" + >+ "}", >+ }, >+ "", >+ null, >+ true, >+ options >+ ); >+ } > }
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 96974
:
21890
| 21893