[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] throw AssertionErrors in EmbeddedWindow
From: |
Thomas Fitzsimmons |
Subject: |
[cp-patches] throw AssertionErrors in EmbeddedWindow |
Date: |
Sat, 10 Sep 2005 00:52:01 -0400 |
Hi,
I committed this patch that makes EmbeddedWindow behave the same as
ClasspathToolkit when reflection calls fail; AssertionErrors are thrown.
Tom
2005-09-10 Thomas Fitzsimmons <address@hidden>
* gnu/java/awt/EmbeddedWindow.java (addNotify): Throw
AssertionError if field access fails.
Index: gnu/java/awt/EmbeddedWindow.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/java/awt/EmbeddedWindow.java,v
retrieving revision 1.8
diff -u -r1.8 EmbeddedWindow.java
--- gnu/java/awt/EmbeddedWindow.java 25 Aug 2005 06:34:27 -0000 1.8
+++ gnu/java/awt/EmbeddedWindow.java 10 Sep 2005 04:49:06 -0000
@@ -98,13 +98,11 @@
}
catch (IllegalAccessException e)
{
- throw new RuntimeException
- ("couldn't set java.awt.Component.peer field");
+ throw new AssertionError (e);
}
catch (NoSuchFieldException e)
{
- throw new RuntimeException
- ("couldn't set java.awt.Component.peer field");
+ throw new AssertionError (e);
}
super.addNotify();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] throw AssertionErrors in EmbeddedWindow,
Thomas Fitzsimmons <=