[jboss-jira] [JBoss JIRA] (JBRULES-3058) initializations in declare not applied for non-default constructor
Geoffrey De Smet (Updated) (JIRA)
jira-events at lists.jboss.org
Fri Oct 21 11:01:54 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-3058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Geoffrey De Smet updated JBRULES-3058:
--------------------------------------
Fix Version/s: 5.4.0.Beta1
(was: 5.3.0.Final)
> initializations in declare not applied for non-default constructor
> ------------------------------------------------------------------
>
> Key: JBRULES-3058
> URL: https://issues.jboss.org/browse/JBRULES-3058
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler (expert)
> Affects Versions: 5.2.0.CR1
> Reporter: Wolfgang Laun
> Assignee: Edson Tirelli
> Fix For: 5.4.0.Beta1
>
>
> declare Person
> name : String @key
> nick : String = "Joe"
> end
> It can be shown that after
> Person p = new Person();
> assert "Joe".equals( p.getNick() );
> However after
> Person p = new Person( "Smith" );
> assert p.getNick() == null;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list