shannah / Java-Objective-C-Bridge

A thin bridge that allows for two-way communication from Java to Objective-C.
123 stars 25 forks source link

Proxy.dispose(boolean) does not synchronize on proxyCache #24

Closed Marcono1234 closed 3 years ago

Marcono1234 commented 3 years ago

Proxy.dispose(boolean) accesses the static proxyCache HashMap without synchronization: https://github.com/shannah/Java-Objective-C-Bridge/blob/473221aeef8f12ca9a659d899f3ca7092aed27ef/src/main/java/ca/weblite/objc/Proxy.java#L187