felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r774660 - /felix/trunk/prefs/src/main/java/org/apache/felix/prefs/PreferencesImpl.java
Date Thu, 14 May 2009 06:58:16 GMT
Author: cziegeler
Date: Thu May 14 06:58:16 2009
New Revision: 774660

URL: http://svn.apache.org/viewvc?rev=774660&view=rev
Log:
FELIX-375 : Fix Preferences.putByteArray() by applying patch from Guillaume Nodet

Modified:
    felix/trunk/prefs/src/main/java/org/apache/felix/prefs/PreferencesImpl.java

Modified: felix/trunk/prefs/src/main/java/org/apache/felix/prefs/PreferencesImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/prefs/src/main/java/org/apache/felix/prefs/PreferencesImpl.java?rev=774660&r1=774659&r2=774660&view=diff
==============================================================================
--- felix/trunk/prefs/src/main/java/org/apache/felix/prefs/PreferencesImpl.java (original)
+++ felix/trunk/prefs/src/main/java/org/apache/felix/prefs/PreferencesImpl.java Thu May 14
06:58:16 2009
@@ -337,7 +337,7 @@
         this.checkKey(key);
         this.checkValue(value);
         try {
-            this.put(key, new String(Base64.decodeBase64(value), "utf-8"));
+            this.put(key, new String(Base64.encodeBase64(value), "utf-8"));
         } catch (UnsupportedEncodingException ignore) {
             // utf-8 is always available
         }



Mime
View raw message