dev@javaserverfaces.java.net

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

From: Edward Burns <edward.burns_at_oracle.com>
Date: Fri, 11 Sep 2015 13:11:25 -0700

>>>>> On Fri, 11 Sep 2015 12:47:56 -0700, Edward Burns <edward.burns_at_oracle.com> said:

AT> There are 3 solutions currently:

AT> 1. Don't compile with JDK8 u60 (can run with that, just don't use it
AT> for compiling)

EB> I'll try that, thanks.

That worked, but we can't tell people they have to use the EDR release
with 8u45. We need an option that allows people to use the latest
available JDK 8. Is there some code change you can make in the
CdiExtension?

AT> 3. Don't use lambdas in these observer methods

EB> That's the thing, my code doesn't even use CDI. Isn't this problem in
EB> the RI?

Ah, you could rewrite the processBean() to not use lambdas, right?

Thanks,

Ed

-- 
| edward.burns_at_oracle.com | office: +1 407 458 0017
| 39 Business days til JavaOne 2015
| 54 Business days til DOAG 2015