[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-6358) Adding inner class as Fact to guided Rule generates incorrect BRL source

Kris Verlaenen (JIRA) jira-events at lists.jboss.org
Thu Apr 21 19:16:19 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-6358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kris Verlaenen updated JBIDE-6358:
----------------------------------

    Assignee:     (was: Kris Verlaenen)


> Adding inner class as Fact to guided Rule generates incorrect BRL source
> ------------------------------------------------------------------------
>
>                 Key: JBIDE-6358
>                 URL: https://issues.jboss.org/browse/JBIDE-6358
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: drools
>    Affects Versions: 3.1.1
>         Environment: Linux 32bit
> JBDS 3.0.1.v201005241821R-H78-GA
> JDK Sun 1.6
>            Reporter: Vlado Pakan
>            Priority: Minor
>             Fix For: LATER
>
>
> When inner class is used as Fact for guided rule it generates incorrect .brl file with error "BuildError: Unable to resolve ObjectType '<class>$<innerclass>'"
> .brl source looks something like this:
> <rule>
>   <name>guided</name>
>   <modelVersion>1.0</modelVersion>
>   <attributes/>
>   <metadataList/>
>   <lhs>
>     <fact>
>       <factType><class>$<innerclass></factType>
>     </fact>
>   </lhs>
>   <rhs/>
> </rule>
> When .brl file is modified and '$" is replaced with '.' i.e "<factType><class>$<innerclass></factType>" is replaced with "<factType><class>.<innerclass></factType>" error is fixed. .brl file is displayed without errors.
> Steps to reproduce:
> 1. create new Drools Project
> 2. create new guided rule
> 3. add "import com.sample.DroolsTest.Message;" line to drools.package file
> 4. open new guided rule file add new when condition and select "DroolsTest$Message" as Fact type
> 5. save guided rule file and error will appear in Problems view

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list