madhanraj / seek-for-android

Automatically exported from code.google.com/p/seek-for-android
0 stars 0 forks source link

Synchronization on non final modifiable variable in SEService #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
mReaders is defined as a non final private field in SEService.
The value is reset on each invocation of getReaders() (line #171)
However the code relies on mReaders for thread syncronization in shutdown code, 
while the variable can possible reset leading to a race.

In addition, onServiceDisconnected callback also syncronizes on mReaders. In 
case the user never called getReader mReaders will be equal to null leading to 
syncronization on null variable.

Original issue reported on code.google.com by kipo...@gmail.com on 6 Nov 2012 at 2:24

GoogleCodeExporter commented 9 years ago
fixed in SCAPI-3.0.0

Original comment by Daniel.A...@gi-de.com on 15 Apr 2013 at 3:19

GoogleCodeExporter commented 9 years ago
setting old issues from fixed to done

Original comment by Daniel.A...@gi-de.com on 5 Jul 2013 at 2:33