[jboss-jira] [JBoss JIRA] Created: (JBRULES-3058) initializations in declare not applied for non-default constructor

Wolfgang Laun (JIRA) jira-events at lists.jboss.org
Mon May 30 07:16:01 EDT 2011


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: Mark Proctor
             Fix For: 5.2.0


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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list