commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1787246 - in /commons/proper/email/trunk/src: changes/changes.xml main/java/org/apache/commons/mail/util/MimeMessageUtils.java
Date Thu, 16 Mar 2017 21:09:14 GMT
Author: sebb
Date: Thu Mar 16 21:09:14 2017
New Revision: 1787246

URL: http://svn.apache.org/viewvc?rev=1787246&view=rev
Log:
EMAIL-169 MimeMessageUtils.writeMimeMessage writes stacktrace

Modified:
    commons/proper/email/trunk/src/changes/changes.xml
    commons/proper/email/trunk/src/main/java/org/apache/commons/mail/util/MimeMessageUtils.java

Modified: commons/proper/email/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/src/changes/changes.xml?rev=1787246&r1=1787245&r2=1787246&view=diff
==============================================================================
--- commons/proper/email/trunk/src/changes/changes.xml (original)
+++ commons/proper/email/trunk/src/changes/changes.xml Thu Mar 16 21:09:14 2017
@@ -24,6 +24,9 @@
   <body>
     <release version="1.5" date="2017-MM-DD">
       <!-- N.B. AFAICT the date attribute is not used anywhere so no point in adding it
-->
+      <action dev="sebb" type="fix" issue="EMAIL-169">
+        MimeMessageUtils.writeMimeMessage writes stacktrace
+      </action>
       <action dev="sebb" type="fix" issue="EMAIL-167" due-to="Lucian Burja">
         DataSourceClassPathResolver doesn't close InputStream when resolving resources
       </action>

Modified: commons/proper/email/trunk/src/main/java/org/apache/commons/mail/util/MimeMessageUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/src/main/java/org/apache/commons/mail/util/MimeMessageUtils.java?rev=1787246&r1=1787245&r2=1787246&view=diff
==============================================================================
--- commons/proper/email/trunk/src/main/java/org/apache/commons/mail/util/MimeMessageUtils.java
(original)
+++ commons/proper/email/trunk/src/main/java/org/apache/commons/mail/util/MimeMessageUtils.java
Thu Mar 16 21:09:14 2017
@@ -174,14 +174,7 @@ public final class MimeMessageUtils
         {
             if (fos != null)
             {
-                try
-                {
-                    fos.close();
-                }
-                catch (final Exception e)
-                {
-                    e.printStackTrace();
-                }
+                fos.close();
             }
         }
     }



Mime
View raw message