[
https://jira.jboss.org/browse/EJBTHREE-2159?page=com.atlassian.jira.plugi...
]
jaikiran pai commented on EJBTHREE-2159:
----------------------------------------
> I am not sure if using a range and an increment should work
together
No, they are not expected to work together. The EJB3.1 spec says:
<quote>
The forward slash constrains an attribute based on a starting point and an interval, and
is used to specify “Every N { seconds | minutes | hours } within the { minute | hour | day
}” (respectively). For expression x/y, the attribute is constrained to every yth value
within the set of allowable values beginning at time x. The x value is inclusive. The
wildcard character (*) can be used in the x position, and is equivalent to 0. Increments
are only supported within the second, minute, and hour attributes. For second and minute,x
and y must each be in the range of [0,59]. For hour, x and y must each be in the range of
[0,23].
</quote>
The x and y values are "single" values.
> but at least I think it should not throw a
java.lang.NumberFormatException, a better error message would be nice
Agreed. The error messages for such cases will be reviewed and this will be fixed
accordingly. Thanks for reporting.
Creating a @Schedule(hour="12-20/2") throws
java.lang.NumberFormatException
---------------------------------------------------------------------------
Key: EJBTHREE-2159
URL:
https://jira.jboss.org/browse/EJBTHREE-2159
Project: EJB 3.0
Issue Type: Bug
Components: timerservice-mk2
Affects Versions: bom-as6-0.2.0-alpha-10
Reporter: Joao Monteiro
Assignee: jaikiran pai
I am not sure if using a range and an increment should work together but at least I think
it should not throw a java.lang.NumberFormatException, a better error message would be
nice
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira