You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result of System.getProperties() can be synchronized on. To make it work properly in build scripts, the same instance must be returned each time the method is called. However, the current instrumentation implementation returns different instances each time, making proper synchronization impossible.
Gradle runtime may also access system properties. Such calls aren't instrumented and use the underlying system properties instance. Ideally, they should share the monitor.
The text was updated successfully, but these errors were encountered:
mlopatkin
changed the title
System.getProperties return different map instances
System.getProperties shouldn't return different map instances
Apr 23, 2024
The result of
System.getProperties()
can be synchronized on. To make it work properly in build scripts, the same instance must be returned each time the method is called. However, the current instrumentation implementation returns different instances each time, making proper synchronization impossible.Gradle runtime may also access system properties. Such calls aren't instrumented and use the underlying system properties instance. Ideally, they should share the monitor.
The text was updated successfully, but these errors were encountered: