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 19823 Details for
Bug 91061
[1.5][compiler] Static reference to outer type variable should not be allowed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed Test Case
patch.txt (text/plain), 1.24 KB, created by
Tim Hanson
on 2005-04-12 14:08:10 EDT
(
hide
)
Description:
Proposed Test Case
Filename:
MIME Type:
Creator:
Tim Hanson
Created:
2005-04-12 14:08:10 EDT
Size:
1.24 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java,v >retrieving revision 1.242 >diff -u -r1.242 GenericTypeTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 7 Apr 2005 14:24:52 -0000 1.242 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 12 Apr 2005 18:06:06 -0000 >@@ -16283,4 +16283,23 @@ > }, > "complain about ambiguity"); > } >+ //https://bugs.eclipse.org/bugs/show_bug.cgi?id=91061 >+ public void test575() { >+ this.runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X<T> {\n" + >+ " public interface I {\n" + >+ " void set(T t);\n" + >+ " }\n" + >+ "}" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 3)\n" + >+ " void set(T t);\n" + >+ " ^\n" + >+ "Cannot make a static reference to the type parameter T\n" + >+ "----------\n"); >+ } >+ > }
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 91061
:
19818
| 19823