Trying the new SAM types and collection methods
marcos_antonio_ps at hotmail.com
Tue Mar 1 06:04:38 PST 2011
> Date: Tue, 1 Mar 2011 03:54:33 -0800
> From: maurizio.cimadamore at oracle.com
> To: marcos_antonio_ps at hotmail.com
> CC: lambda-dev at openjdk.java.net
> Subject: Re: Trying the new SAM types and collection methods
> On 01/03/11 11:27, Marcos Antonio wrote:
> > 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.
> The way to do it is to:
> *) clone the entire collections repository
> *) remove the langtools folder from the newly created repo (from step above)
> *) clone the lambda main langtools repo
> *) build the jdk
> > 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