[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-365) bug in fields inspection when creating Field Extractors for non-camelcase accessors

Mark Proctor (JIRA) jira-events at jboss.com
Tue Jul 11 20:26:11 EDT 2006


     [ http://jira.jboss.com/jira/browse/JBRULES-365?page=all ]

Mark Proctor resolved JBRULES-365.
----------------------------------

    Fix Version/s: 3.0.3
                   3.1-m1
       Resolution: Done

> bug in fields inspection when creating Field Extractors for non-camelcase accessors
> -----------------------------------------------------------------------------------
>
>                 Key: JBRULES-365
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-365
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Drl Parser/Builder
>         Environment: Centrino, Gentoo Linux (Kernel 2.6.16), Eclipse 3.2 with JBoss Rules Plugin on Java 1.5.0_07
>            Reporter: Andreas Langegger
>         Assigned To: Mark Proctor
>            Priority: Critical
>             Fix For: 3.0.3, 3.1-m1
>
>
> Consider a java bean or POJO with a public String FOO; and these accessors:
> 	public String getFOO() {
> 		return FOO;
> 	}
> 	public void setFOO(String foo) {
> 		FOO = foo;
> 	}
> ---------------------------------------
> The
> rule "relation existance"
> 	when
> 		r : MyBean ( FOO == "" )
> 	then
> 		System.out.println("Found " + r.getName() + ".");
> end
> ...will cause:
> org.drools.rule.InvalidRulePackage: Unable to create Field Extractor for 'FOO'
> 	at org.drools.rule.Package.checkValidity(Unknown Source)
> 	at org.drools.common.AbstractRuleBase.addPackage(Unknown Source)
> ...
> Possible a quick fix only.
> I've marked it BLOCKING, because it prevents me and possibly others of using Drools together with Jena, the Ontology API.
> Best regards,
> Andy

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list