<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Problem binding to property "attributes"</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I have a simple class:-</FONT>
</P>
<UL>
<P><FONT SIZE=2 FACE="Courier New">public class Simple {</FONT>
</P>
<P> <FONT SIZE=2 FACE="Courier New">private Attributes attributes;</FONT>
</P>
<P> <FONT SIZE=2 FACE="Courier New">public Attributes </FONT><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">getAttributes</FONT><FONT SIZE=2 FACE="Courier New">() {</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">return this.attributes;</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">}</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">}</FONT>
</P>
</UL>
<P><FONT SIZE=2 FACE="Arial">And a simple rule:-</FONT>
</P>
<UL>
<P><FONT SIZE=2 FACE="Courier New">rule "Simple"</FONT>
<BR><FONT SIZE=2 FACE="Courier New">when</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">$s : Simple( $a : </FONT><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">attributes</FONT><FONT SIZE=2 FACE="Courier New"> )</FONT>
<BR><FONT SIZE=2 FACE="Courier New">then</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">System.out.println("Simple!");</FONT>
<BR><FONT SIZE=2 FACE="Courier New">End</FONT>
</P>
</UL>
<P><FONT SIZE=2 FACE="Arial">I receive an "</FONT><FONT SIZE=2 FACE="Courier New">Unexpected token $a</FONT><FONT SIZE=2 FACE="Arial">" error in the Eclipse plug-in. Thinking it might just be related to the plug-in I naively run the code and receive a</FONT> <FONT SIZE=2 FACE="Courier New">org.drools.rule.InvalidRulePackage</FONT><FONT SIZE=2 FACE="Arial"> error.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">If I change the property name to something else like this:-</FONT>
</P>
<UL>
<P><FONT SIZE=2 FACE="Courier New">public class Simple {</FONT>
</P>
<P> <FONT SIZE=2 FACE="Courier New">private Attributes attributes;</FONT>
</P>
<P> <FONT SIZE=2 FACE="Courier New">public Attributes </FONT><FONT COLOR="#00FF00" SIZE=2 FACE="Courier New">getSmurf</FONT><FONT SIZE=2 FACE="Courier New">() {</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">return this.attributes;</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">}</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">}</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">rule "Simple"</FONT>
<BR><FONT SIZE=2 FACE="Courier New">when</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">$s : Simple( $a : </FONT><FONT COLOR="#00FF00" SIZE=2 FACE="Courier New">smurf</FONT><FONT SIZE=2 FACE="Courier New"> )</FONT>
<BR><FONT SIZE=2 FACE="Courier New">then</FONT>
<BR> <FONT SIZE=2 FACE="Courier New">System.out.println("Simple!");</FONT>
<BR><FONT SIZE=2 FACE="Courier New">End</FONT>
</P>
</UL>
<P><FONT SIZE=2 FACE="Arial">Everything is fine.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Is this a known issue?</FONT>
</P>
<P><FONT COLOR="#000000" SIZE=2 FACE="Arial">With kind regards,</FONT>
</P>
<P><FONT COLOR="#808080" SIZE=4 FACE="Goudy Old Style">Michael Anstis</FONT><BR>
<FONT COLOR="#808080" SIZE=2 FACE="Arial">-------------------------------------------</FONT><BR>
<B></B><B><FONT COLOR="#000080" FACE="Arial">Next Generation Estimating System</FONT></B>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Wingdings">(</FONT><FONT COLOR="#808080" SIZE=2 FACE="Arial"> Trafford House (Int) 8 718 2239 </FONT>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Wingdings">(</FONT><FONT COLOR="#808080" SIZE=2 FACE="Arial"> Trafford House (Ext) +44 (0)1268 702239</FONT>
<BR><FONT COLOR="#808080" SIZE=2 FACE="Wingdings">*</FONT><FONT COLOR="#808080" SIZE=2 FACE="Arial"> <</FONT><A HREF="mailto:manstis1@ford.com"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">manstis1@ford.com</FONT></U></A><FONT COLOR="#808080" SIZE=2 FACE="Tahoma">></FONT>
<BR><FONT FACE="Tahoma">Ford Motor Company Ltd. </FONT>
<BR><FONT SIZE=2 FACE="Tahoma">Registered in England: No. 235446 </FONT>
<BR><FONT SIZE=2 FACE="Tahoma">Registered Office: Eagle Way BRENTWOOD Essex CM13 3BW</FONT>
</P>
</BODY>
</HTML>