+2003-07-20 Anthony Green <green@redhat.com>
+
+ * gnu/awt/j2d/AbstractGraphicsState.java (clone): Handle
+ CloneNotSupportedException.
+ * gnu/gcj/xlib/WindowAttributes.java (clone): Ditto.
+ * gnu/gcj/xlib/WMSizeHints.java (clone): Ditto.
+ * gnu/gcj/xlib/GC.java (clone): Ditto.
+ * gnu/awt/xlib/XGraphics.java (clone): Ditto.
+ * gnu/awt/j2d/Graphics2DImpl.java (clone): Ditto.
+
+ * gnu/awt/xlib/XEventLoop.java (postNextEvent): Remove unreachable
+ handler.
+ * gnu/gcj/runtime/NameFinder.java (NameFinder): Ditto.
+
2003-07-20 Steve Pribyl <steve@netfuel.com.>
* gnu/gcj/runtime/natSharedLibLoader.cc (init): `libname' now a
public Object clone ()
{
- return super.clone ();
+ try
+ {
+ return super.clone ();
+ }
+ catch (CloneNotSupportedException ex)
+ {
+ // This should never happen.
+ throw new InternalError ();
+ }
}
}
public Object clone()
{
- Graphics2DImpl gfxCopy = (Graphics2DImpl) super.clone();
- AbstractGraphicsState stateCopy =
- (AbstractGraphicsState) state.clone();
- gfxCopy.setState(stateCopy);
-
- return gfxCopy;
+ try
+ {
+ Graphics2DImpl gfxCopy = (Graphics2DImpl) super.clone();
+ AbstractGraphicsState stateCopy =
+ (AbstractGraphicsState) state.clone();
+ gfxCopy.setState(stateCopy);
+
+ return gfxCopy;
+ }
+ catch (CloneNotSupportedException ex)
+ {
+ // This should never happen.
+ throw new InternalError ();
+ }
}
void postNextEvent()
{
- try
- {
- AWTEvent evt = getNextEvent();
- queue.postEvent(evt);
-
- }
- catch (InterruptedException ie)
- {
- // FIXME: what now?
- System.err.println(ie);
- }
+ AWTEvent evt = getNextEvent();
+ queue.postEvent(evt);
}
/** get next event. Will block until events become available. */
public Object clone()
{
- XGraphics gfxCopy = (XGraphics) super.clone();
- gfxCopy.context = context.create();
-
- return gfxCopy;
+ try
+ {
+ XGraphics gfxCopy = (XGraphics) super.clone();
+ gfxCopy.context = context.create();
+
+ return gfxCopy;
+ }
+ catch (CloneNotSupportedException ex)
+ {
+ // This should never happen.
+ throw new InternalError ();
+ }
}
public void dispose()
if (addr2line != null)
{
- try
- {
- addr2lineIn = new BufferedReader
- (new InputStreamReader(addr2line.getInputStream()));
- addr2lineOut = new BufferedWriter
- (new OutputStreamWriter(addr2line.getOutputStream()));
- }
- catch (IOException ioe)
- {
- addr2line.destroy();
- addr2line = null;
- }
+ addr2lineIn = new BufferedReader
+ (new InputStreamReader(addr2line.getInputStream()));
+ addr2lineOut = new BufferedWriter
+ (new OutputStreamWriter(addr2line.getOutputStream()));
}
}
}
*/
public Object clone()
{
- GC gcClone = target.getGCFromCache ();
- if (gcClone==null)
- {
- gcClone = (GC) super.clone();
- gcClone.structure = null;
- }
- gcClone.initStructure(this);
- gcClone.updateClip();
- return gcClone;
+ try
+ {
+ GC gcClone = target.getGCFromCache ();
+ if (gcClone==null)
+ {
+ gcClone = (GC) super.clone();
+ gcClone.structure = null;
+ }
+ gcClone.initStructure(this);
+ gcClone.updateClip();
+ return gcClone;
+ }
+ catch (CloneNotSupportedException ex)
+ {
+ // This should never happen.
+ throw new InternalError ();
+ }
}
private native void initStructure(GC copyFrom);
protected native void finalize();
public Object clone() {
- WMSizeHints hints = (WMSizeHints) super.clone();
- // In case of an exception before the stucture is copied.
- hints.structure = null;
-
- hints.init(this);
- return hints;
+ try
+ {
+ WMSizeHints hints = (WMSizeHints) super.clone();
+ // In case of an exception before the stucture is copied.
+ hints.structure = null;
+
+ hints.init(this);
+ return hints;
+ }
+ catch (CloneNotSupportedException ex)
+ {
+ // This should never happen.
+ throw new InternalError ();
+ }
}
public native void applyNormalHints(Window window);
public Object clone()
{
- WindowAttributes attributes = (WindowAttributes) super.clone();
- // In case of an exception before the stucture is copied.
- attributes.in = null;
- attributes.out = null;
-
- // FIXME: do anything else?
+ try
+ {
+ WindowAttributes attributes = (WindowAttributes) super.clone();
+ // In case of an exception before the stucture is copied.
+ attributes.in = null;
+ attributes.out = null;
+
+ // FIXME: do anything else?
- attributes.init(this);
- return attributes;
+ attributes.init(this);
+ return attributes;
+ }
+ catch (CloneNotSupportedException ex)
+ {
+ // This should never happen.
+ throw new InternalError ();
+ }
}
public native void setBackground(long pixel);