[rules-users] Drools causes switch(enum e) to break?

Wolfgang Laun wolfgang.laun at gmail.com
Mon Apr 14 07:48:01 EDT 2014


This would mean that setting a project as "Drools project" has an
impact on the compilation of plain old Java code? That would be
an evil bug in some Drools plugin. Posting all the details might
interest the Drools developer group.
-W


On 14/04/2014, Leonard93 <leonardlindenau at hotmail.com> wrote:
> The enum is called RuleType, sorry. I am posting this here because this
> error
> only happens within Drools projects, in normal java projects this error
> does
> not happen.
>
> The error is /"Cannot switch on a value of type RuleType. Only convertible
> int values or enum variables are permitted"/ no more, no less. It happens
> on
> the 	*switch(type)*. I don't really know how it can happen but maybe
> someone
> here could give some pointers.
>
> Once again, the same switch and enum in a bland java project gives no
> problems.
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-causes-switch-enum-e-to-break-tp4029233p4029235.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list