Minimize Ja.NET Forums
 
  Ja.NET Forums  Ja.NET SE  Using  Unbound Wildcards Support
Previous Previous
 
Next Next
New Post 4/4/2009 2:25 PM
Unresolved
  CloudCreator
1 posts
No Ranking


Unbound Wildcards Support 

Hi, I just stumbled upon your website, looks interesting.

I have a couple of questions.

How do u deal with unbound wildcards and generic covariance and contravariance?

Can I do this

Something<Son> objSon = new Something<Son>();

Something<Father> objFather = objSon, where

Class Son extends Father

{}

 

and also

Do u support Something<?> ?

thanks.

 
New Post 4/8/2009 7:16 AM
  Dave
15 posts
No Ranking


Re: Unbound Wildcards Support 

Hi,

At this point, the Java compiler included with Ja.NET SE implements Generics using erasure, just like a Java compiler would do for a JVM target.. .... It does not take advantage of the CLR's support for Generics at this point.  Maybe in the future.

 

Dave

 
Previous Previous
 
Next Next
  Ja.NET Forums  Ja.NET SE  Using  Unbound Wildcards Support
Syndicate