8017287: Better resource disposal
authorbae
Mon, 01 Jul 2013 15:17:24 +0400
changeset 20811 6b25b85f10fd
parent 20810 b464ed57d001
child 20812 16a6de786164
8017287: Better resource disposal Reviewed-by: prr, vadim, skoivu
jdk/src/share/classes/sun/java2d/Disposer.java
--- a/jdk/src/share/classes/sun/java2d/Disposer.java	Thu Jun 27 10:37:08 2013 +0100
+++ b/jdk/src/share/classes/sun/java2d/Disposer.java	Mon Jul 01 15:17:24 2013 +0400
@@ -155,8 +155,7 @@
                 rec = null;
                 clearDeferredRecords();
             } catch (Exception e) {
-                System.out.println("Exception while removing reference: " + e);
-                e.printStackTrace();
+                System.out.println("Exception while removing reference.");
             }
         }
     }
@@ -182,7 +181,6 @@
                 rec.dispose();
             } catch (Exception e) {
                 System.out.println("Exception while disposing deferred rec.");
-                e.printStackTrace();
             }
         }
         deferredRecords.clear();
@@ -233,8 +231,7 @@
                 }
             }
         } catch (Exception e) {
-            System.out.println("Exception while removing reference: " + e);
-            e.printStackTrace();
+            System.out.println("Exception while removing reference.");
         } finally {
             pollingQueue = false;
         }