dev@javaserverfaces.java.net

Re: Please help: CDI definition failure:WELD-000409: Observer method for container lifecycle event

From: arjan tijms <arjan.tijms_at_gmail.com>
Date: Fri, 11 Sep 2015 20:51:33 +0200

Hi,

On Fri, Sep 11, 2015 at 8:41 PM, Edward Burns <edward.burns_at_oracle.com> wrote:
>>>>>> On Fri, 11 Sep 2015 11:36:34 -0700, Edward Burns <ed.burns_at_sun.com> said:
> http://mail.openjdk.java.net/pipermail/lambda-dev/2015-August/012146.html
>
> But what's the resolution?

It's a kind of regression between JDK8 update 60 and Weld. At least
from the side of Weld it's logged as a bug a subsequently fixed.

There are 3 solutions currently:

1. Don't compile with JDK8 u60 (can run with that, just don't use it
for compiling)
2. Update Weld
3. Don't use lambdas in these observer methods

Kind regards,
Arjan Tijms