[
https://jira.jboss.org/browse/JBEE-50?page=com.atlassian.jira.plugin.syst...
]
jaikiran pai updated JBEE-50:
-----------------------------
Description:
For a default schedule when timezone is *not* explicitly specified, the EJB3.1 spec says:
[97] Note that annotation java.lang.String attributes use the empty string "" as
a default, so the expression @Schedule(timezone="", ...) will result in a null
value from the corresponding ScheduleExpression.getTimezone() method.
Right now, ScheduleExpression.getTimezone() returns an empty string for a default
schedule:
ScheduleExpression exp = new ScheduleExpression().year(5000);
exp.getTimezone() // should return null;
was:
For a default @Schedule when timezone is *not* explicitly specified, the EJB3.1 spec
says:
[97] Note that annotation java.lang.String attributes use the empty string "" as
a default, so the expression @Schedule(timezone="", ...) will result in a null
value from the corresponding ScheduleExpression.getTimezone() method.
Right now, ScheduleExpression.getTimezone() returns an empty string for a default
@Schedule
ScheduleExpression.getTimezone() should return null for default
@Schedule
-------------------------------------------------------------------------
Key: JBEE-50
URL:
https://jira.jboss.org/browse/JBEE-50
Project: JBoss JavaEE APIs
Issue Type: Bug
Components: EJB API
Affects Versions: 1.0.0.Beta2-ejb-3.1-api
Reporter: jaikiran pai
Assignee: jaikiran pai
For a default schedule when timezone is *not* explicitly specified, the EJB3.1 spec
says:
[97] Note that annotation java.lang.String attributes use the empty string ""
as a default, so the expression @Schedule(timezone="", ...) will result in a
null value from the corresponding ScheduleExpression.getTimezone() method.
Right now, ScheduleExpression.getTimezone() returns an empty string for a default
schedule:
ScheduleExpression exp = new ScheduleExpression().year(5000);
exp.getTimezone() // should return null;
--
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