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

Max Rydahl Andersen (JIRA) issues at jboss.org
Mon Jan 20 06:55:53 EST 2014


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

Max Rydahl Andersen resolved JBIDE-6358.
----------------------------------------

    Resolution: Out of Date


Thank you for reporting this issue but this issue have been resolved as out-of-date since it has not had any updates for the last 2+ years (730 days).

If you believe this issue is still relevant and important then please reopen the issue or create a new one mentioning/linking this jira for background information.

Thank you!


                
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list