Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349660

Summary: AbstractSchedulerJob sync issues
Product: z_Archived Reporter: Reto Aschwanden <reto.aschwanden>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivan.motsch, zimmermann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Reto Aschwanden CLA 2011-06-17 05:07:09 EDT
Build Identifier: M20100211-1343

In org.eclipse.scout.rt.server.scheduler.AbstractSchedulerJob, there exist the fields:
  private String m_groupId;
  private String m_jobId;
  private boolean m_disposed;
  private boolean m_interrupted;
which are potentially accessed by different threads when the job is run asynchronously. So we get visibility issues for these fields.
Fix: 
  private final String m_groupId;
  private final String m_jobId;
  private volatile boolean m_disposed;
  private volatile boolean m_interrupted;


Reproducible: Always
Comment 1 Ivan Motsch CLA 2011-06-17 05:20:46 EDT
Your enhancement request is valid and was applied as proposed.
Thank you.
Comment 2 Matthias Zimmermann CLA 2011-10-10 12:41:08 EDT
shipped with scout 3.7.1