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 141662 Details for
Bug 283575
[1.5][compiler] Compiler Error in type inference.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Source file
Problem.java (text/plain), 978 bytes, created by
Raphaël Lemaire
on 2009-07-15 12:17:32 EDT
(
hide
)
Description:
Source file
Filename:
MIME Type:
Creator:
Raphaël Lemaire
Created:
2009-07-15 12:17:32 EDT
Size:
978 bytes
patch
obsolete
>package com.test; > >class Foo { } >class Foo1 extends Foo { } >class Foo2 extends Foo { } > >interface IBar<M extends Foo, X> { } > >interface BarFactory { > <M extends Foo, X, D extends IBar<M, X>> D make(Class<D> barClass, Class<M> fooClass, Class<X> xmlClass); > >} > >class AbstractBar<M extends Foo, X> implements IBar<Foo, X> { > > private BarFactory barFactory; > > public BarFactory getBarFactory() { > return barFactory; > } > >} > >class BarFactoryImpl implements BarFactory { > > @Override > public <M extends Foo, X, D extends IBar<M, X>> D make(Class<D> barClass, Class<M> fooClass, Class<X> xmlClass) { > // doesnt matter > return null; > } > >} > >class ConcreteBar1<M extends Foo, X> extends AbstractBar<M, X> { > >} > >public class Problem { > public static void main(String[] args) { > AbstractBar<Foo1, String> successeur = new BarFactoryImpl().make(ConcreteBar1.class, Foo1.class, String.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 Raw
Actions:
View
Attachments on
bug 283575
: 141662