/[classpath]/classpath/gnu/java/awt/ClasspathToolkit.java
ViewVC logotype

Diff of /classpath/gnu/java/awt/ClasspathToolkit.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by fitzsim, Thu Aug 25 06:34:27 2005 UTC revision 1.18 by mark, Thu Sep 1 23:03:00 2005 UTC
# Line 140  public abstract class ClasspathToolkit Line 140  public abstract class ClasspathToolkit
140      // java.awt.Font.Font(String,Map) constructor.      // java.awt.Font.Font(String,Map) constructor.
141      try      try
142        {        {
143          Constructor fontConstructor = Component.class.getConstructor          Constructor fontConstructor = Font.class.getDeclaredConstructor
144            (new Class[] { String.class, Map.class });            (new Class[] { String.class, Map.class });
145          AccessController.doPrivileged          AccessController.doPrivileged
146            (new SetAccessibleAction(fontConstructor));            (new SetAccessibleAction(fontConstructor));
# Line 148  public abstract class ClasspathToolkit Line 148  public abstract class ClasspathToolkit
148        }        }
149      catch (IllegalAccessException e)      catch (IllegalAccessException e)
150        {        {
151          throw new RuntimeException          throw new AssertionError(e);
           ("couldn't call java.awt.Font.Font(String,Map) constructor");  
152        }        }
153      catch (NoSuchMethodException e)      catch (NoSuchMethodException e)
154        {        {
155          throw new RuntimeException          throw new AssertionError(e);
           ("couldn't call java.awt.Font.Font(String,Map) constructor");  
156        }        }
157      catch (InstantiationException e)      catch (InstantiationException e)
158        {        {
159          throw new RuntimeException          throw new AssertionError(e);
           ("couldn't call java.awt.Font.Font(String,Map) constructor");  
160        }        }
161      catch (InvocationTargetException e)      catch (InvocationTargetException e)
162        {        {
163          throw new RuntimeException          throw new AssertionError(e);
           ("couldn't call java.awt.Font.Font(String,Map) constructor");  
164        }        }
165      return f;      return f;
166    }    }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26