GJ: A Generic Java

Patrick Tullmann tullmann@cs.utah.edu
Sat Apr 1 00:00:00 GMT 2000


Tom Tromey wrote:
> There have been Java implementations with generics for a while now --
> "pizza" had generics.  If they end up in the official Java, though,
> that would be cool.  It would also be a lot more work for Alex...

It is unofficially in official Java.  I believe you just have to
invoke GJMain instead of Main in the com.sun.tools.javac package:

% java com.sun.tools.javac.GJMain <filename>.java 

I belive this is only available in the 1.3 JDK and later...  The
rumors I've heard is that the code is just the GJ reference
implementation that's been available separately for a while now.

-Pat

----- ----- ---- ---  ---  --   -    -      -         -               -
Pat Tullmann                                       tullmann@cs.utah.edu
 Thisemailhasbeenbroughttoyoubycocacolafavoredbyprogrammerseverywhere


More information about the Java mailing list