You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to annotate some statements with an @Priority annotation whose value is defined as a constant in a different module:
create constant variable int DEBUG_PRIORITY = Integer.MAX_VALUE;
Then I try to refer that constant from an @Priority annotation
@Name('DebugXXX')
@Audit
@Priority(DEBUG_PRIORITY) // We want debug consumer statements to execut and print their result before other consumers
select *
from XXXType;
But I get this exception when trying to load the module:
2018-02-15 18:04:19,854 ERROR [AnnotationUtil] Unexpected exception compiling annotations in statement, please consult the log file and report the exception: java.lang.String cannot be cast to java.lang.Number
(detailed logs are attached, once internal data has been removed; note that it is the console output, I do not know about the location of the logs file there mentioned.)
I know that a workaround may consist on wiring the value into the priority annotation; but in any case, that ClassCastException makes little sense, as there is no String involved in the whole process (there is a java.lang.Integer constant, then an EPL int variable). logs-issue-esper-priority.txt
The text was updated successfully, but these errors were encountered:
I am trying to annotate some statements with an
@Priority
annotation whose value is defined as a constant in a different module:Then I try to refer that constant from an
@Priority
annotationBut I get this exception when trying to load the module:
(detailed logs are attached, once internal data has been removed; note that it is the console output, I do not know about the location of the logs file there mentioned.)
I know that a workaround may consist on wiring the value into the priority annotation; but in any case, that ClassCastException makes little sense, as there is no String involved in the whole process (there is a java.lang.Integer constant, then an EPL int variable).
logs-issue-esper-priority.txt
The text was updated successfully, but these errors were encountered: