directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1134927 - in /directory/apacheds/trunk: core-api/src/main/java/org/apache/directory/server/core/ core-api/src/main/java/org/apache/directory/server/core/changelog/ jdbm-partition/src/main/java/org/apache/directory/server/core/partition/imp...
Date Sun, 12 Jun 2011 13:47:00 GMT
Author: seelmann
Date: Sun Jun 12 13:46:59 2011
New Revision: 1134927

URL: http://svn.apache.org/viewvc?rev=1134927&view=rev
Log:
Fix Java5 compile errors

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapPrincipalSerializer.java
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEventSerializer.java
    directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/ServerEntrySerializer.java
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventMessage.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java?rev=1134927&r1=1134926&r2=1134927&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
Sun Jun 12 13:46:59 2011
@@ -151,7 +151,9 @@ public class LdapCoreSessionConnection i
         }
         catch ( Exception e )
         {
-            throw new IOException( e.getMessage() );
+            IOException ioe = new IOException( e.getMessage() );
+            ioe.initCause( e );
+            throw ioe;
         }
 
         return true;

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapPrincipalSerializer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapPrincipalSerializer.java?rev=1134927&r1=1134926&r2=1134927&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapPrincipalSerializer.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapPrincipalSerializer.java
Sun Jun 12 13:46:59 2011
@@ -95,7 +95,9 @@ public final class LdapPrincipalSerializ
         }
         catch ( ClassNotFoundException cnfe )
         {
-            throw new IOException( cnfe.getMessage(), cnfe );
+            IOException ioe = new IOException( cnfe.getMessage() );
+            ioe.initCause( cnfe );
+            throw ioe;
         }
         
         LdapPrincipal principal = new LdapPrincipal( schemaManager, dn, authenticationLevel
);

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEventSerializer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEventSerializer.java?rev=1134927&r1=1134926&r2=1134927&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEventSerializer.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEventSerializer.java
Sun Jun 12 13:46:59 2011
@@ -114,7 +114,9 @@ public final class ChangeLogEventSeriali
         }
         catch ( ClassNotFoundException cnfe )
         {
-            throw new IOException( cnfe.getMessage(), cnfe );
+            IOException ioe = new IOException( cnfe.getMessage() );
+            ioe.initCause( cnfe );
+            throw ioe;
         }
         
         // The reverse LDIFs number
@@ -132,7 +134,9 @@ public final class ChangeLogEventSeriali
             }
             catch ( ClassNotFoundException cnfe )
             {
-                throw new IOException( cnfe.getMessage(), cnfe );
+                IOException ioe = new IOException( cnfe.getMessage() );
+                ioe.initCause( cnfe );
+                throw ioe;
             }
             
             reverses.add( reverseEntry );

Modified: directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/ServerEntrySerializer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/ServerEntrySerializer.java?rev=1134927&r1=1134926&r2=1134927&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/ServerEntrySerializer.java
(original)
+++ directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/ServerEntrySerializer.java
Sun Jun 12 13:46:59 2011
@@ -188,7 +188,9 @@ public class ServerEntrySerializer imple
                 }
                 catch ( LdapInvalidDnException lide )
                 {
-                    throw new IOException( lide.getMessage(), lide );
+                    IOException ioe = new IOException( lide.getMessage() );
+                    ioe.initCause( lide );
+                    throw ioe;
                 }
             }
             else

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventMessage.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventMessage.java?rev=1134927&r1=1134926&r2=1134927&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventMessage.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicaEventMessage.java
Sun Jun 12 13:46:59 2011
@@ -151,7 +151,9 @@ public class ReplicaEventMessage impleme
         }
         catch ( ClassNotFoundException cnfe )
         {
-            throw new IOException( cnfe.getMessage(), cnfe );
+            IOException ioe = new IOException( cnfe.getMessage() );
+            ioe.initCause( cnfe );
+            throw ioe;
         }
         
         entry.setDn( dn );



Mime
View raw message