[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-6358) Adding inner class as Fact to guided Rule generates incorrect BRL source
Max Rydahl Andersen (JIRA)
jira-events at lists.jboss.org
Mon Jun 14 09:46:46 EDT 2010
[ https://jira.jboss.org/browse/JBIDE-6358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Rydahl Andersen updated JBIDE-6358:
---------------------------------------
Fix Version/s: 3.2.x
Priority: Minor (was: Major)
> Adding inner class as Fact to guided Rule generates incorrect BRL source
> ------------------------------------------------------------------------
>
> Key: JBIDE-6358
> URL: https://jira.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
> Assignee: Kris Verlaenen
> Priority: Minor
> Fix For: 3.2.x
>
>
> 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 contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list