This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | @SessionScoped bean must be Serializable | ||
---|---|---|---|
Product: | javaee | Reporter: | arungupta <arungupta> |
Component: | CDI | Assignee: | Denis Anisimov <ads> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
arungupta
2012-01-10 01:08:30 UTC
If managed bean is created via wizard with appropriate scope ( JavaServer Faces -> JSF Managed Bean with beans.xml existing ) it implements Serializable. So this request is about custom Java class with SessionScoped annotation ( some normal scopes should be also considered as well ). The Editor warning or error should be attached. This is similar to planned enhancements for CDI : http://wiki.netbeans.org/CDIFeatures72. I will add it to this list. See related issue #188995 . So here is exact requirement for the issue : managed bean declaring a passivating scope must be passivation capable. Here is a definition of passivating scope : Passivating scope is the scope annotated by @NormalScope(passivating=true). There are two built-in passivating scopes : session and conversation. The editor mark should be not a WARNING but ERROR. web-main#d45aea65aebf Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/d45aea65aebf User: Denis Anisimov <ads@netbeans.org> Log: Fix for BZ#207094 - @SessionScoped bean must be Serializable |