[ https://issues.apache.org/jira/browse/DELTASPIKE-1477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17986015#comment-17986015 ]
ASF subversion and git services commented on DELTASPIKE-1477: ------------------------------------------------------------- Commit 41f2f3aa2dd913044d813277ac39e6c9cbdcf02f in deltaspike's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=deltaspike.git;h=41f2f3aa2 ] DELTASPIKE-1477 set passivationId for Repository > Repository has null passivationId > --------------------------------- > > Key: DELTASPIKE-1477 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1477 > Project: DeltaSpike > Issue Type: Bug > Security Level: public(Regular issues) > Components: PartialBean > Affects Versions: 2.0.0 > Reporter: Vladimir Dvorak > Priority: Major > > The method `PartialBeanBindingExtension.createPartialBean()` does not set the > `id` in `beanConfigurator`, resulting in broken session serialization in > version 2.0. > > In version 1.9, the `passivationId` was set in > `PartialBeanBindingExtension.createPartialBean()` using > `BeanBuilder.readFromType()`, which assigned the `passivationId` as follows: > > {quote} > this.id = ImmutableBeanWrapper.class.getName() + ":" + > Annotateds.createTypeId(type); > {quote} > > To achieve similar functionality in version 2.0 the id() should be set in > similar way: > > {quote}BeanConfiguratorUtils.read(beanManager, beanConfigurator, > annotatedType) > .beanClass(beanClass); > beanConfigurator.id(Annotateds.createTypeId(annotatedType)); > new DeltaSpikeProxyBeanConfigurator(beanClass, > descriptor.getHandler(), > {quote} -- This message was sent by Atlassian Jira (v8.20.10#820010)