<div dir="ltr">I am using 5.5.0.Final and I think I may have run into a bug.<div><br></div><div style>Assuming I have a class Foo  that has a getter which is getMyEnum().</div><div style><br></div><div style>Also I have a Enum class which happens to have the name MyEnum.</div>
<div style><br></div><div style>When writing rules, I have </div><div style><br></div><div style>$foo : Foo (MyEnum == MyEnum.someItem)</div><div style><br></div><div style>This line will throw NullPointerException. </div>
<div style><br></div><div style>I have to write it as:</div><div style><div>$foo : Foo (getMyEnum() == MyEnum.someItem)</div><div><br></div><div style>This statement will work just fine.</div><div style><br></div><div style>
The workaround is ok for DRL. However I tested this on Guvnor and the rule editor would generate the DRL just like the first statement (MyEnum == MyEnum.someItem). So we would be out of luck there.</div><div style><br></div>
<div style>Has anyone ever ran into this before.</div><div style><br></div><div style>Thanks</div><div style><br></div><div style>Sean</div><div><br></div><div><br></div></div></div>