[jboss-jira] [JBoss JIRA] (DROOLS-61) Classes with package protected visibility cannot be used in rules defined in the same package
Mario Fusco (JIRA)
jira-events at lists.jboss.org
Wed Feb 27 11:20:58 EST 2013
Mario Fusco created DROOLS-61:
---------------------------------
Summary: Classes with package protected visibility cannot be used in rules defined in the same package
Key: DROOLS-61
URL: https://issues.jboss.org/browse/DROOLS-61
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Mario Fusco
Assignee: Mario Fusco
The following two files (foo/Foo.java, foo/foo.drl) are sufficient to
reproduce the bug, i.e., a diagnostic
Exception in thread "main" [Error: could not access field: foo.Foo.x]
[Near : {... x == 1 ....}]
{code}
package foo;
/*** not public ***/ class Foo {
private int x = 1;
public int getX(){ return x; }
}
package foo;
rule "foo getX"
when
Foo( x == 1 )
then
System.out.println( "some Foo.x == 1" );
end
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list