Lambda Libraries Iteration 1 Complete
bitter_fox
bitterfoxc at gmail.com
Tue May 15 20:29:31 PDT 2012
Hi Marcos,
>From the change[1], the body which returns void of lambda expression was
restricted as Block-Type.
So, you have to write it as block today:
private void registrarObservadorAlteracaoVa
lor()
{
addPropertyChangeListener("value", e -> {valorAlteradoInterno(true);});
}
Please try this code.
Regard,
bitter_fox
[1]:
http://mail.openjdk.java.net/pipermail/lambda-dev/2012-April/004745.html
Sorry, I've forgot that I add lambda-dev at openjdk.java.net to Cc.
So, I send this mail again.
2012/5/16 Marcos Antonio <marcos_antonio_ps at hotmail.com>
>
> Hello! I was using the "lambda-8-b25-windows-x64-05_feb_2012" snapshot.
> Now, with the new one ("lambda-8-b39-windows-x64-11_may_2012"),I'm getting
> all sort of error messages, even for simple things that should work, like
> this code that used to compile: private void
> registrarObservadorAlteracaoValor(){ addPropertyChangeListener("value",
> e -> valorAlteradoInterno(true));} Now I get the error:
> C:\desenvolvimento\desenvolvimento\br\desenvolvimento\iu\CampoTextoFormatado.java:307:
> error: no suitable method found for
> addPropertyChangeListener(String,lambda) [javac]
> addPropertyChangeListener("value", e -> valorAlteradoInterno(true));
> [javac] ^ [javac] method
> Container.addPropertyChangeListener(String,PropertyChangeListener) is not
> applicable [javac] (incompatible return type void in lambda
> expression) [javac] method
> Container.addPropertyChangeListener(PropertyChangeListener) is not
> applicable [javac] (actual and formal argument lists di!
> ffer in length) And there are lots of other errors with basic code. Am I
> missing something? Do I have to provide some compiler flag? Thank you.
> Marcos > From: mike.duigou at oracle.com
> > Subject: Lambda Libraries Iteration 1 Complete
> > Date: Tue, 15 May 2012 15:04:48 -0700
> > To: lambda-dev at openjdk.java.net
> >
> > Lambditizens;
> >
> > A new binary snapshot of the the prototype Lambda branch of OpenJDK 8 is
> available at <http://jdk8.java.net/lambda/>. Builds are available for all
> of the OpenJDK supported platforms. We encourage you to try out the latest
> lambda-enabled JVM, compiler and libraries.
> >
> > The new release contains enhancements to the the JVM, compiler and
> libraries. Of particular note are improvements to the compiler and to the
> libraries. The compiler now has full support for defender method semantics
> as per latest Featherweight Defenders document (including super calls) and
> structural most-specific resolution.
> >
> > On the libraries side, this new release contains the completion of our
> first iteration of the bulk data API for streams (Collection-shaped) and
> map streams (Map-shaped). Our goals in the first iteration of the API were;
> > - Establish the required functionality
> > - Prototype the parallel implementation
> > - Look for poor interactions with boxing
> > - Decide what we could live without
> > - Better understand attachment to collections
> >
> > Definitive Non-goals for the first iteration were:
> > - Define the final Java APIs for lambda and parallel collections
> > - Provide complete parallel implementations
> > - Matching performance of hand-tuned fork-join parallel algorithms
> > - Complete handling of primitives
> >
> > The current non-goals will be the focus of future iterations. The
> upcoming iteration will be focused on defining the APIs and getting the
> correct attachment to existing collections data structures.
> >
> > The current lambda bulk data APIs are intended to provide a basic set of
> what we believe is the required functionality. Comments and suggestions on
> the API or implementation are certainly welcome, but the biggest
> contribution the user community can make at this point is to try out the
> libraries and language features using your favourite problems or refactor
> existing code to use lambda. Please report back on how well the features
> worked for your code and especially cases that didn't work well, where
> expected functionality was missing or where the implementation was
> cumbersome or considerably slower than the existing solutions. Share and
> discuss your findings with other developers and the lambda team on
> lambda-dev mailing list or at conferences and meetings.
> >
> >
> >
>
>
>
More information about the lambda-dev
mailing list