tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ple...@apache.org
Subject incubator-tamaya git commit: Fixed bug int the PropertyConverterManager to avoid IllegalMonitorStateException.
Date Wed, 28 Jan 2015 16:25:23 GMT
Repository: incubator-tamaya
Updated Branches:
  refs/heads/master 310195342 -> 16d4a3f95


Fixed bug int the PropertyConverterManager to avoid IllegalMonitorStateException.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/16d4a3f9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/16d4a3f9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/16d4a3f9

Branch: refs/heads/master
Commit: 16d4a3f9590fc99fb9ef854a78c2f2e4d9d774d9
Parents: 3101953
Author: Oliver B. Fischer <plexus@apache.org>
Authored: Wed Jan 28 17:23:17 2015 +0100
Committer: Oliver B. Fischer <plexus@apache.org>
Committed: Wed Jan 28 17:23:17 2015 +0100

----------------------------------------------------------------------
 .../org/apache/tamaya/core/internal/PropertyConverterManager.java   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/16d4a3f9/java8/core/src/main/java/org/apache/tamaya/core/internal/PropertyConverterManager.java
----------------------------------------------------------------------
diff --git a/java8/core/src/main/java/org/apache/tamaya/core/internal/PropertyConverterManager.java
b/java8/core/src/main/java/org/apache/tamaya/core/internal/PropertyConverterManager.java
index e698634..a06d3d1 100644
--- a/java8/core/src/main/java/org/apache/tamaya/core/internal/PropertyConverterManager.java
+++ b/java8/core/src/main/java/org/apache/tamaya/core/internal/PropertyConverterManager.java
@@ -153,6 +153,7 @@ public class PropertyConverterManager {
         if (defaultConverter != null) {
             register(targetType, defaultConverter);
             try {
+                readLock.lock();
                 converters = List.class.cast(this.converters.get(targetType));
             } finally {
                 readLock.unlock();


Mime
View raw message