Proj4j Race Condition and the Importance of Dependencies Update

Photo by Gilly Stewart on Unsplash
  • org.osgeo which doesn’t looks like being actively maintained but the bug was fixed.
  • location tech (the maintainers of JTS) that looks more actively maintained.


  • I am not sure if you notice, but the fix was adding asynchronized keyword on the method. I can think of better alternatives. I would probably make this set initialized on construction when the class loads.
  • Having an 8 years old, undocumented, lib is also something you should try to avoid.
  • Concurrency bugs can be tricky!




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Here’s why I converted my blog site to become a PWA (Progressive Web App)

Web Scraping Using Python and Selenium

HTML For Humans — 4 — HTML Text Elements

Fixing Open Source Vulnerabilities in Azure Dev Ops- WhiteSource Bolt

Dtron Diaries Ch. 2

Attending vGHC 2020: Celebration of learning in the time of Corona

Taxonomy of Programming Languages

Programmers Should Step Out of Their Comfort Zone

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


More from Medium

Advanced gRPC (Deadlines, Cancellation, Error Handling, Multiplexing)

Performance Optimisation using SO_REUSEPORT


【Go】Implement SHA256, encryption and hashing in Go

How to Share GRPC Proto Buffers Files Across Microservices