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 21061 Details for
Bug 95021
[1.5][compiler] incorrectly inferred method type parameters bug in 3.1M6?
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
source file demonstrating the problem
GenericsBug.java (text/plain), 1003 bytes, created by
David Hovemeyer
on 2005-05-12 15:00:25 EDT
(
hide
)
Description:
source file demonstrating the problem
Filename:
MIME Type:
Creator:
David Hovemeyer
Created:
2005-05-12 15:00:25 EDT
Size:
1003 bytes
patch
obsolete
>import java.util.Map; > >interface MethodProperty<ActualType extends MethodProperty<ActualType>> { > public void copyFrom(ActualType other); >} > >class MethodPropertyDatabase<Property extends MethodProperty<Property>> { > Map<String, Property> propertyMap; > > void read(String fileName) { > } >} > >class FooProperty implements MethodProperty<FooProperty> { > String value; > > public void copyFrom(FooProperty other) { > this.value = other.value; > } >} > >class FooPropertyDatabase extends MethodPropertyDatabase<FooProperty> { >} > >public class GenericsBug { > FooPropertyDatabase fooDatabase; > > public void readDatabase() { > FooPropertyDatabase database = new FooPropertyDatabase(); > > fooDatabase = readDatabase(database, "foodatabase.db"); // Bug reported on this line > } > > private< > Property extends MethodProperty<Property>, > DatabaseType extends MethodPropertyDatabase<Property> > > DatabaseType readDatabase(DatabaseType database, String fileName) { > database.read(fileName); > return database; > } > >}
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 95021
: 21061