Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349660 - AbstractSchedulerJob sync issues
Summary: AbstractSchedulerJob sync issues
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-17 05:07 EDT by Reto Aschwanden CLA
Modified: 2021-08-19 10:58 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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