[jbpm-issues] [JBoss JIRA] Updated: (JBPM-2717) "org.jbpm.pvm.internal.wire.WireException: couldn't initialize object 'null': couldn't find property setter setXXX for value true" for native boolean setters
Per Christian Henden (JIRA)
jira-events at lists.jboss.org
Wed Jan 6 09:59:31 EST 2010
[ https://jira.jboss.org/jira/browse/JBPM-2717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Per Christian Henden updated JBPM-2717:
---------------------------------------
Attachment: booleanPropertyBugTest.diff
Extends ObjectWireTest#testPropertyInjection to expose the setXXX(boolean b) issue
> "org.jbpm.pvm.internal.wire.WireException: couldn't initialize object 'null': couldn't find property setter setXXX for value true" for native boolean setters
> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBPM-2717
> URL: https://jira.jboss.org/jira/browse/JBPM-2717
> Project: jBPM
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: jBPM 4.3
> Environment: Windows Vista, java 1.6, jboss 4.2.2.GA
> Reporter: Per Christian Henden
> Attachments: booleanPropertyBugTest.diff
>
>
> I ran into a problem with accessing boolean properties of an eventListener.
> I've attached a patch to trunk of ./modules/pvm/src/test/java/org/jbpm/pvm/internal/wire/ObjectWireTest.java that adds a test that exposes this problem.
> Basically, the example below fails with the error
> "org.jbpm.pvm.internal.wire.WireException: couldn't initialize object 'null': couldn't find property setter setCreateXml for value true"
> JPDL-fragment:
> <event-listener expr="#{stateApprovalAction}">
> <property name="createXml">
> <true/>
> </property>
> </event-listener>
> Java-fragment:
> public void setCreateXml(boolean createXml) {
> this.createXml = createXml;
> }
> Workaround: changing the Java-side to use a Boolean instead of a boolean for the method parameter.
> While there is a workaround, I will still suggest supporting both Boolean and boolean-based setters.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbpm-issues
mailing list