sbt / sbt-osgi

sbt plugin for creating OSGi bundles
Apache License 2.0
47 stars 43 forks source link

Serialize calls to builder.build (which is not thread-safe) #12

Closed justinp closed 10 years ago

justinp commented 10 years ago

This prevents intermittent NumberFormatException errors when multiple bundles are being built concurrently. Being a timing issue, I didn't make a test case for it but I've been using it for a week or so now and have not seen a single NumberFormatException.

reggert commented 10 years ago

Nice catch! I've reported this as a bnd bug: https://github.com/bndtools/bnd/issues/439 We should remember to revert this workaround once the issue is fixed in bnd.