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 178936 Details for
Bug 325357
[compiler]Classes not inheriting member types.
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.
Example2.java
Example2.java (text/plain), 1.45 KB, created by
bungeman
on 2010-09-15 10:25:50 EDT
(
hide
)
Description:
Example2.java
Filename:
MIME Type:
Creator:
bungeman
Created:
2010-09-15 10:25:50 EDT
Size:
1.45 KB
patch
obsolete
>package inherittest; > >//import inherittest.Example2.Base.InnerBase; >import inherittest.Example2.Extendable.InnerExtendable; >import inherittest.Example2.Leaf.InnerLeaf; >import inherittest.Example2.Leaf2.InnerLeaf2; > >public class Example2 { > public interface TypeA { } > > public static class Base<A extends TypeA, S extends Example2.Base.InnerBase<A>> { > public static abstract class InnerBase<A extends TypeA> { } > } > > public static class Extendable<A extends TypeA, S extends InnerExtendable<A>> extends Base<A,S> { > public static class InnerExtendable<A extends TypeA> extends Extendable.InnerBase<A> { } > } > > //http://java.sun.com/docs/books/jls/third_edition/html/classes.html#300431 > //A class inherits from its direct superclass and direct superinterfaces > //all the non-private member types of the superclass and superinterfaces that are both > // accessible to code in the class and > // not hidden by a declaration in the class. > public static class Leaf<A extends TypeA> extends Base<A, InnerLeaf<A>> { > public static class InnerLeaf<A extends TypeA> extends /*Base.*/InnerBase<A> { } > } > public static class Leaf2<A extends TypeA> extends Base<A, InnerLeaf2<A>> { > public static class InnerLeaf2<A extends TypeA> extends Leaf2.InnerBase<A> { } > } > > public static class RawLeaf extends Base { > public static class RawInnerLeaf extends InnerBase { } > } > public static class RawLeaf2 extends Base { > public static class RawInnerLeaf2 extends RawLeaf2.InnerBase { } > } >}
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 Raw
Actions:
View
Attachments on
bug 325357
:
178935
| 178936 |
178937