changeset 6672:b06abd965701 jdk7u45-b01

8017287: Better resource disposal Reviewed-by: vadim
author bae
date Mon, 01 Jul 2013 20:20:50 +0400
parents 517a47e66573
children 4a9ced03945a
files src/share/classes/sun/java2d/Disposer.java
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/java2d/Disposer.java	Fri Jun 28 11:39:50 2013 -0700
+++ b/src/share/classes/sun/java2d/Disposer.java	Mon Jul 01 20:20:50 2013 +0400
@@ -150,8 +150,7 @@
                 rec = null;
                 clearDeferredRecords();
             } catch (Exception e) {
-                System.out.println("Exception while removing reference: " + e);
-                e.printStackTrace();
+                System.out.println("Exception while removing reference.");
             }
         }
     }
@@ -177,7 +176,6 @@
                 rec.dispose();
             } catch (Exception e) {
                 System.out.println("Exception while disposing deferred rec.");
-                e.printStackTrace();
             }
         }
         deferredRecords.clear();
@@ -228,8 +226,7 @@
                 }
             }
         } catch (Exception e) {
-            System.out.println("Exception while removing reference: " + e);
-            e.printStackTrace();
+            System.out.println("Exception while removing reference.");
         } finally {
             pollingQueue = false;
         }