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 112476 Details for
Bug 247206
[compiler] Deprecation problem on inherited return type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
test cases
clipboard.txt (text/plain), 2.63 KB, created by
Benjamin Muskalla
on 2008-09-12 20:29:37 EDT
(
hide
)
Description:
test cases
Filename:
MIME Type:
Creator:
Benjamin Muskalla
Created:
2008-09-12 20:29:37 EDT
Size:
2.63 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.compiler >Index: src/org/eclipse/jdt/core/tests/compiler/regression/DeprecatedTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/DeprecatedTest.java,v >retrieving revision 1.37 >diff -u -r1.37 DeprecatedTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/DeprecatedTest.java 27 Jun 2008 16:04:44 -0000 1.37 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/DeprecatedTest.java 13 Sep 2008 00:28:57 -0000 >@@ -796,6 +796,68 @@ > // javac options > JavacTestOptions.Excuse.EclipseWarningConfiguredAsError /* javac test options */); > } >+//https://bugs.eclipse.org/bugs/show_bug.cgi?id=247206 >+public void test020() { >+ Map customOptions = new HashMap(); >+ customOptions.put(CompilerOptions.OPTION_ReportDeprecation, CompilerOptions.ERROR); >+ customOptions.put(CompilerOptions.OPTION_ReportDeprecationWhenOverridingDeprecatedMethod, CompilerOptions.IGNORE); >+ >+ this.runConformTest( >+ new String[] { >+ "test1/E.java", >+ "package test1;\n" + >+ "\n" + >+ "public class E implements I {\n" + >+ " public I2 foo() {\n" + >+ " return null;\n" + >+ " }\n" + >+ "}\n" + >+ "interface I {\n" + >+ " /** @deprecated */\n" + >+ " public I2 foo();\n" + >+ "}\n" + >+ "/** @deprecated */\n" + >+ "interface I2 {}", >+ }, >+ "", // expected output >+ null, >+ true, // flush previous output dir content >+ null, // special vm args >+ customOptions, // custom options >+ null); // custom requestor >+} >+// https://bugs.eclipse.org/bugs/show_bug.cgi?id=247206 >+public void test021() { >+ Map customOptions = new HashMap(); >+ customOptions.put(CompilerOptions.OPTION_ReportDeprecation, CompilerOptions.ERROR); >+ customOptions.put(CompilerOptions.OPTION_ReportDeprecationWhenOverridingDeprecatedMethod, CompilerOptions.IGNORE); >+ >+ this.runConformTest( >+ new String[] { >+ "test1/E.java", >+ "package test1;\n" + >+ "\n" + >+ "public class E implements I {\n" + >+ " public I2 foo() {\n" + >+ " return null;\n" + >+ " }\n" + >+ "}\n" + >+ "interface I {\n" + >+ " /** @deprecated */\n" + >+ " public I2 foo();\n" + >+ "}\n", >+ "test1/I2.java", >+ "package test1;\n" + >+ "/** @deprecated */\n" + >+ "interface I2 {}", >+ }, >+ "", // expected output >+ null, >+ true, // flush previous output dir content >+ null, // special vm args >+ customOptions, // custom options >+ null); // custom requestor >+} > public static Class testClass() { > return DeprecatedTest.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 247206
: 112476 |
124141
|
124262
|
124532