[rules-users] Unresolved Object Reference

Narendra Valada narendra.valada at gmail.com
Thu Jul 5 16:15:21 EDT 2007


Thank you for your quick response.

I cannot make the Outer class static and public since it is not an inner
class.

In my example, I have two inner classes : Inner and InnerInner.

Class Inner is enclosed by Outer and class InnerInner is enclosed by Inner.
I get the "Unable to resolve object type"  error only on the "InnerInner"
class and not on the "Inner" class.

Both the inner classes are defined as non-static.

Thanks,

Narendra



On 7/5/07, Mark Proctor <mproctor at codehaus.org> wrote:
>
> you need to make your Outer class static and public. Look at the sample
> generated with a new drools project, that uses a static public class.
>
> Mark
> Narendra Valada wrote:
>
> * Hello,
>
> I am getting an "Unable to resolve object type" error on certain XML Bean
> generated inner classes. I get this error only on inner classes that have
> been defined within other inner classes. Please see example below.
>
> Is this a known limitation of JBoss Rules (I am using JBOSS Rules 3.0.6)
> or the JANINO compiler?
>
> Thanks.
>
> package
> com.sample;
>
> public
> class Outer{     public class Inner {     public boolean inner =false;
> public class InnerInner {
>
>         }
>
>      }
>
> }
> package
> *com.sample *
>
> import
> *com.sample.Outer1.Inner.InnerInner; *
>
> rule
> *"Hello World 1" *when*
>
> InnerInner()
> *then*
>
> System.out.println(
> "");*
>
> end
> *
>
> ------------------------------
>
> _______________________________________________
> rules-users mailing listrules-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070705/ef37ce62/attachment.html 


More information about the rules-users mailing list