[jboss-jira] [JBoss JIRA] Updated: (JBRULES-3191) Unable to find class when extending a bean with a declared class as a field

Carlos Sierra (JIRA) jira-events at lists.jboss.org
Tue Aug 30 08:43:26 EDT 2011


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

Carlos Sierra updated JBRULES-3191:
-----------------------------------

    Attachment: Sample.drl
                Bean.java
                DroolsTest.java


DroolsTest -> Main class
Bean -> POJO
Sample.drl -> rule file declaring the new classes

> Unable to find class when extending a bean with a declared class as a field
> ---------------------------------------------------------------------------
>
>                 Key: JBRULES-3191
>                 URL: https://issues.jboss.org/browse/JBRULES-3191
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler (expert), drools-compiler-DSL
>    Affects Versions: 5.2.0.Final
>         Environment: java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
> Description:	Ubuntu 10.04.3 LTS
>            Reporter: Carlos Sierra
>            Assignee: Mark Proctor
>         Attachments: Bean.java, DroolsTest.java, Sample.drl
>
>
> If you declare a Class in a DRL and try to declare a new Class extending a Bean having your first declared class as an attribute the compiler complains it cannot find the declared class. However if you remove the "extends" keyword the the class is found without problems.
> I attach a testcase to reproduce the bug.

--
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