Getting .java:9: operator > cannot be applied to java.lang.Float PDF Print E-mail

You see this and messages like it when using a Lexicon Expression business rule, and the Java you supplied is causing a compilation exception at runtime.

"operator > cannot be applied to java.lang.Float"

You might be using "$PARAMETER$ > 0" as the expression code. The PARAMETER element will be represented by a Float object in the Lexicon Bean, so you'll need to use something like "$PARAMETER$.floatValue() > 0". This allows you to use other methods for the Float class too.

 


OpenLexicon.org | Home arrow FAQ arrow Getting .java:9: operator > cannot be applied to java.lang.Float
Home
News
FAQ
Downloads
Installation
Getting Started
Documentation
Forums
Training
Links
Licences
Customers & Partners
Contact Us
Login
Username

Password

Remember me
Lost Password?
No account yet? Register