mx4j/src/core/javax/management/timer Timer.java,1.18,1.19

Jeremy Boynes <[email protected]> Mon, 14 Feb 2005 06:10:32 +0000
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/core/javax/management/timer
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9983/src/core/javax/management/timer

Modified Files:
	Timer.java 
Log Message:
Fix for [ 1122172 ] Timer must increment seq number

Index: Timer.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/timer/Timer.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** Timer.java	13 Nov 2004 16:39:01 -0000	1.18
--- Timer.java	14 Feb 2005 06:10:29 -0000	1.19
***************
*** 206,210 ****
           {
              // Send the notification
!             sendNotification(getNotification());
           }
        };
--- 206,218 ----
           {
              // Send the notification
!             TimerNotification notification = getNotification();
!             TimerNotification toSend;
!             synchronized(notification)
!             {
!                toSend = new TimerNotification(notification.getType(), notification.getSource(), notification.getSequenceNumber(), notification.getTimeStamp(), notification.getMessage(), notification.getNotificationID());
!                toSend.setUserData(notification.getUserData());
!                notification.setSequenceNumber(notification.getSequenceNumber() + 1);
!             }
!             sendNotification(toSend);
           }
        };



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click