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 234679 Details for
Bug 415269
[compiler][null] NonNullByDefault is not always inherited to nested classes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
test case
test-for-415269.patch (text/plain), 1.22 KB, created by
Till Brychcy
on 2013-08-22 17:36:24 EDT
(
hide
)
Description:
test case
Filename:
MIME Type:
Creator:
Till Brychcy
Created:
2013-08-22 17:36:24 EDT
Size:
1.22 KB
patch
obsolete
>diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationTest.java >index 890711f..a3ac3d7 100644 >--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationTest.java >+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationTest.java >@@ -6289,4 +6289,29 @@ > "Null type mismatch: required \'@NonNull String\' but the provided value is null\n" + > "----------\n"); > } >+ >+public void testBug_415269() { >+ Map options = getCompilerOptions(); >+ runConformTestWithLibs( >+ new String[]{ >+ "Y.java", >+ "import org.eclipse.jdt.annotation.NonNull;\n"+ >+ "public class Y {\n"+ >+ " public static class C implements X.I {\n"+ >+ " public void method(@NonNull Object arg) {\n"+ >+ " }\n"+ >+ " }\n"+ >+ "}\n", >+ "X.java", >+ "import org.eclipse.jdt.annotation.NonNullByDefault;\n"+ >+ "@NonNullByDefault\n"+ >+ "public class X {\n"+ >+ " public interface I {\n"+ >+ " public void method(Object arg);\n"+ >+ " }\n"+ >+ "}\n" >+ }, >+ 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 415269
:
234505
| 234679