]
Alejandro Guizar updated JBPM-1059:
-----------------------------------
Fix Version/s: jBPM 3.2.2 SOA 1
Minor patch to avoid possible integer overflow in DayPart.add() in
case of crazy Calendar values
------------------------------------------------------------------------------------------------
Key: JBPM-1059
URL:
http://jira.jboss.com/jira/browse/JBPM-1059
Project: JBoss jBPM
Issue Type: Patch
Affects Versions: jBPM 3.1.4, jBPM jPDL 3.2.2
Reporter: Johan Parent
Assigned To: Alejandro Guizar
Fix For: jBPM 3.1.5, jBPM jPDL 3.2.3, jBPM 3.2.2 SOA 1
In
public Date add(Date date, Duration duration) {
Date end = null;
Calendar calendar = BusinessCalendar.getCalendar();
calendar.setTime(date);
int hour = calendar.get(Calendar.HOUR_OF_DAY);
int minute = calendar.get(Calendar.MINUTE);
long dateMilliseconds = ((hour*60)+minute)*60*1000;
long dayPartEndMilleseconds = ((toHour*60)+toMinute)*60*1000;
change last two lines into:
long dateMilliseconds = ((hour*60L)+minute)*60*1000;
long dayPartEndMilleseconds = ((toHour*60L)+toMinute)*60*1000;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: