pSpaces / jSpace

Programming with Spaces in Java
MIT License
17 stars 12 forks source link

IllegalMonitorStateException #8

Closed TheAIBot closed 6 years ago

TheAIBot commented 6 years ago

https://github.com/pSpaces/jSpace/blob/4718671192a4461a4a3b91fa11d1972443ab59d7/common/src/main/java/org/jspace/SequentialSpace.java#L112

SequentialSpace crashes when calling SequentialSpace.queryAll because the notifyAll() isn't inside a synchonized block.

SequentialSpace.queryAll should probably be synchonized

michele-loreti commented 6 years ago

I have just fixed the issue. A new version is available.