Trying the new SAM types and collection methods
Marcos Antonio
marcos_antonio_ps at hotmail.com
Tue Mar 1 03:27:37 PST 2011
Hello, everybody!
I've been trying the lambda prototype for a while and it's being a good experience.
I used this to clone (which creates the directory "C:\lambda\langtools" in my machine):
hg clone http://hg.openjdk.java.net/lambda/lambda/langtools
this to compile the langtools:
ant -Dboot.java.home="C:\Java\jdk1.6.0_22" -Dtarget.java.home="C:\Java\jdk1.7.0" -Dimport.jdk="C:\Java\jdk1.7.0" build-all-tools
and these options to run my application:
-XX:+UnlockExperimentalVMOptions
-XX:+EnableMethodHandles
-XX:+EnableInvokeDynamic
Now I saw that the URL for the new things that I want to try is:
http://hg.openjdk.java.net/lambda/collections/jdk (I suppose)
This is where my doubts start. When I click with the right mouse button on the directory "C:\lambda\langtools"
the TortoiseHg presents me some options like "Synchronize" and "Update". I don't know if I have to pull the changes
from the above URL in this directory (langtools) or if I have to create another directory (for example, "C:\lambda\jdk")
and how to compile the files after that. I haven't tried anything of these yet because I was afraid of messing my
langtools installation.
So I would like to have your help telling me how I should proceed to update and compile these new features (SAM types
and collection methods).
Thank you very much.
Marcos
More information about the lambda-dev
mailing list