LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Sat Aug 19 20:40:37 CEST 2006
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/06/08 19:20:40

    Modified: jop/java/target/src/jdk/java/lang Exception.java
    Added: jop/java/target/src/jdk/java/lang ArithmeticException.java
    ArrayIndexOutOfBoundsException.java
    ArrayStoreException.java ClassCastException.java
    ClassNotFoundException.java
    CloneNotSupportedException.java
    IllegalArgumentException.java
    IllegalMonitorStateException.java
    IllegalStateException.java
    IllegalThreadStateException.java
    IndexOutOfBoundsException.java
    InstantiationException.java
    InterruptedException.java
    NegativeArraySizeException.java
    NoSuchFieldException.java
    NoSuchMethodException.java
    NullPointerException.java
    NumberFormatException.java RuntimeException.java
    SecurityException.java
    StringIndexOutOfBoundsException.java
    TypeNotPresentException.java
    UnsupportedOperationException.java
    Log:
    some Exceptions


    Revision Changes Path
    1.2 jop/java/target/src/jdk/java/lang/Exception.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/Exception.java.diff?r1=1.1&r2=1.2

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: Exception.java
    ===================================================================
    RCS file: /cvsroot/martin/jop/java/target/src/jdk/java/lang/Exception.java,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- Exception.java 11 May 2005 16:38:49 -0000 1.1
    +++ Exception.java 19 Aug 2006 18:40:37 -0000 1.2
    @@ -1,21 +1,102 @@
    +/* Exception.java -- generic exception thrown to indicate an exceptional
    + condition has occurred.
    + Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc.
    +
    +This file is part of GNU Classpath.
    +
    +GNU Classpath is free software; you can redistribute it and/or modify
    +it under the terms of the GNU General Public License as published by
    +the Free Software Foundation; either version 2, or (at your option)
    +any later version.
    +
    +GNU Classpath is distributed in the hope that it will be useful, but
    +WITHOUT ANY WARRANTY; without even the implied warranty of
    +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    +General Public License for more details.
    +
    +You should have received a copy of the GNU General Public License
    +along with GNU Classpath; see the file COPYING. If not, write to the
    +Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    +02110-1301 USA.
    +
    +Linking this library statically or dynamically with other modules is
    +making a combined work based on this library. Thus, the terms and
    +conditions of the GNU General Public License cover the whole
    +combination.
    +
    +As a special exception, the copyright holders of this library give you
    +permission to link this library with independent modules to produce an
    +executable, regardless of the license terms of these independent
    +modules, and to copy and distribute the resulting executable under
    +terms of your choice, provided that you also meet, for each linked
    +independent module, the terms and conditions of the license of that
    +module. An independent module is a module which is not derived from
    +or based on this library. If you modify this library, you may extend
    +this exception to your version of the library, but you are not
    +obligated to do so. If you do not wish to do so, delete this
    +exception statement from your version. */
    +

    package java.lang;
    +
    +/**
    + * The root class of all exceptions worth catching in a program. This
    + * includes the special category of <code>RuntimeException</code>, which
    + * does not need to be declared in a throws clause. Exceptions can be used
    + * to represent almost any exceptional behavior, such as programming errors,
    + * mouse movements, keyboard clicking, etc.
    + *
    + * @author Brian Jones
    + * @author Warren Levy (warrenl@c...)
    + * @author Eric Blake (ebb9@e...)
    + * @status updated to 1.4
    + */
    public class Exception extends Throwable
    {
    + /**
    + * Compatible with JDK 1.0+.
    + */
    + private static final long serialVersionUID = -3387516993124229948L; + + /** + * Create an exception without a message. The cause remains uninitialized. + * + * @see #initCause(Throwable) + */ public Exception() { } + /** + * Create an exception with a message. The cause remains uninitialized. + * + * @param s the message + * @see #initCause(Throwable) + */ public Exception(String s) { super(s); } + /** + * Create an exception with a message and a cause. + * + * @param s the message string + * @param cause the cause of this error + * @since 1.4 + */ public Exception(String s, Throwable cause) { super(s, cause); } + /** + * Create an exception with a given cause, and a message of + * <code>cause == null ? null : cause.toString()</code>. + * + * @param cause the cause of this exception + * @since 1.4 + */ public Exception(Throwable cause) { super(cause); 1.1 jop/java/target/src/jdk/java/lang/ArithmeticException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/ArithmeticException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: ArithmeticException.java =================================================================== /* ArithmeticException.java -- exception thrown to indicate conditions like divide by zero. Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown when a math error has occured, such as trying to divide an * integer by zero. For example:<br> * <pre> * int i = 0; * int j = 2 / i; * </pre> * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @status updated to 1.4 */ public class ArithmeticException extends RuntimeException { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = 2256477558314496007L; /** * Create an exception without a message. */ public ArithmeticException() { } /** * Create an exception with a message. * * @param s the message */ public ArithmeticException(String s) { super(s); } } 1.1 jop/java/target/src/jdk/java/lang/ArrayIndexOutOfBoundsException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/ArrayIndexOutOfBoundsException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: ArrayIndexOutOfBoundsException.java =================================================================== /* ArrayIndexOutOfBoundsException.java -- exception thrown when accessing an illegal index. Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown when attempting to access a position outside the valid range of * an array. For example:<br> * <pre> * int[] i = { 1 }; * i[1] = 2; * </pre> * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @status updated to 1.4 */ public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = -5116101128118950844L; /** * Create an exception without a message. */ public ArrayIndexOutOfBoundsException() { } /** * Create an exception with a message. * * @param s the message */ public ArrayIndexOutOfBoundsException(String s) { super(s); } /** * Create an exception indicating the illegal index. * * @param index the invalid index */ public ArrayIndexOutOfBoundsException(int index) { super("Array index out of range: " + index); } } 1.1 jop/java/target/src/jdk/java/lang/ArrayStoreException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/ArrayStoreException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: ArrayStoreException.java =================================================================== /* ArrayStoreException.java -- exception thrown to when trying to store an object into an array of a different type. Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown when trying to store an object of the wrong runtime type in an * array. For example:<br> * <pre> * Object[] o = new Integer[1]; * o[0] = "oops"; * </pre> * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @status updated to 1.4 */ public class ArrayStoreException extends RuntimeException { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = -4522193890499838241L; /** * Create an exception without a message. */ public ArrayStoreException() { } /** * Create an exception with a message. * * @param s the message */ public ArrayStoreException(String s) { super(s); } } 1.1 jop/java/target/src/jdk/java/lang/ClassCastException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/ClassCastException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: ClassCastException.java =================================================================== /* ClassCastException.java -- exception thrown on bad cast Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown when an attempt is made to cast an object which is not of the * appropriate runtime type. For example:<br> * <pre> * Object o = new Vector(); * String s = (String) o; * </pre> * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @status updated to 1.4 */ public class ClassCastException extends RuntimeException { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = -9223365651070458532L; /** * Create an exception without a message. */ public ClassCastException() { } /** * Create an exception with a message. * * @param s the message */ public ClassCastException(String s) { super(s); } } 1.1 jop/java/target/src/jdk/java/lang/ClassNotFoundException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/ClassNotFoundException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: ClassNotFoundException.java =================================================================== /* ClassNotFoundException.java -- thrown when class definition cannot be found Copyright (C) 1998, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown when a class is requested by reflection, but the class definition * cannot be found. This exception is often chained from another Throwable. * * @author Brian Jones * @author Eric Blake (ebb9@e...) * @see Class#forName(String) * @see ClassLoader#findSystemClass(String) * @see ClassLoader#loadClass(String, boolean) * @status updated to 1.4 */ public class ClassNotFoundException extends Exception { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = 9176873029745254542L; /** * The cause of this exception (duplicates the one stored in Throwable). * * @serial the exception cause * @since 1.2 */ private final Throwable ex; /** * Create an exception without a message. Note that this initializes the * cause to null. */ public ClassNotFoundException() { this(null); } /** * Create an exception with a message. Note that this initializes the * cause to null. * * @param s the message */ public ClassNotFoundException(String s) { super(s); ex = null; } /** * Create an exception with a message and chain it to the exception * which occurred while loading the class. * * @param s the message * @param ex the chained exception * @since 1.2 */ public ClassNotFoundException(String s, Throwable ex) { super(s, ex); this.ex = ex; } /** * Returns the exception which occurred while loading the class, * otherwise returns null. This is a legacy method; the preferred choice * now is {@link Throwable#getCause()}. * * @return the cause of this exception * @since 1.2 */ public Throwable getException() { return ex; } /** * Returns the exception which occurred while loading the class, * otherwise returns null. * * @return the cause of this exception * @since 1.4 */ public Throwable getCause() { return ex; } } 1.1 jop/java/target/src/jdk/java/lang/CloneNotSupportedException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/CloneNotSupportedException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: CloneNotSupportedException.java =================================================================== /* CloneNotSupportedException.java -- thrown when an object cannot be cloned Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown to indicate an object should not or could not be cloned. This * includes the case when {@link Object#clone()} is called on an object * which does not implement the {@link Cloneable} interface. For example:<br> * <pre> * void m() throws CloneNotSupportedException * { * clone(); * } * </pre> * * <p>Notice that calling <code>clone()</code> on an array will never produce * this exception, as the VM will always succeed in copying the array, or * cause an OutOfMemoryError first. For example:<br> * <pre> * void m(int[] array) * { * int[] copy = (int[]) array.clone(); * } * </pre> * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @author Eric Blake (ebb9@e...) * @see Cloneable * @see Object#clone() * @status updated to 1.4 */ public class CloneNotSupportedException extends Exception { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = 5195511250079656443L; /** * Create an exception without a message. */ public CloneNotSupportedException() { } /** * Create an exception with a message. * * @param s the error message */ public CloneNotSupportedException(String s) { super(s); } } 1.1 jop/java/target/src/jdk/java/lang/IllegalArgumentException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/IllegalArgumentException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: IllegalArgumentException.java =================================================================== /* IllegalArgumentException.java -- thrown when a method is passed an illegal or inappropriate argument Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown when a method is passed an illegal or inappropriate argument. For * example:<br> * <pre> * wait(-1); * </pre> * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @author Andrew John Hughes (gnu_andrew@m...) * @status updated to 1.5 */ public class IllegalArgumentException extends RuntimeException { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = -5365630128856068164L; /** * Create an exception without a message. */ public IllegalArgumentException() { } /** * Create an exception with a message. * * @param s the message */ public IllegalArgumentException(String s) { super(s); } /** * <p> * Constructs a <code>IllegalArgumentException</code> using * the specified error message, which should give further details * as to the reason for this exception. The specified cause * <code>Throwable</code> may be used to provide additional history, * with regards to the root of the problem. It is perfectly valid * for this to be null, if the cause of the problem is unknown. * </p> * <p> * <strong>Note</strong>: the detail message from the cause is not * automatically incorporated into the resulting detail message of * this exception. * </p> * * @param message the detail message, which should give the reason for * this exception being thrown. * @param cause the cause of this exception, or null if the cause * is unknown. * @since 1.5 */ public IllegalArgumentException(String message, Throwable cause) { super(message, cause); } /** * <p> * Constructs a <code>IllegalArgumentException</code> using * the specified cause <code>Throwable</code>, which may be used * to provide additional history, with regards to the root of the * problem. It is perfectly valid for this to be null, if the * cause of the problem is unknown. * </p> * <p> * The detail message is automatically constructed from the detail * message of the supplied causal exception. If the cause is null, * then the detail message will also be null. Otherwise, the detail * message of this exception will be that of the causal exception. * This makes this constructor very useful for simply wrapping another * exception. * </p> * * @param cause the cause of this exception, or null if the cause * is unknown. * @since 1.5 */ public IllegalArgumentException(Throwable cause) { super(cause); } } 1.1 jop/java/target/src/jdk/java/lang/IllegalMonitorStateException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/IllegalMonitorStateException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: IllegalMonitorStateException.java =================================================================== /* IllegalMonitorStateException.java -- thrown when trying to wait or notify a monitor that is not owned Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown when a thread attempts to wait or notify on a monitor that it * does not own (ie. it has not synchronized on the object). For example:<br> * <pre> * void m() { * notify(); * } * </pre> * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @status updated to 1.4 */ public class IllegalMonitorStateException extends RuntimeException { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = 3713306369498869069L; /** * Create an exception without a message. */ public IllegalMonitorStateException() { } /** * Create an exception with a message. * * @param s the message */ public IllegalMonitorStateException(String s) { super(s); } } 1.1 jop/java/target/src/jdk/java/lang/IllegalStateException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/IllegalStateException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: IllegalStateException.java =================================================================== /* IllegalStateException.java -- thrown when invoking a method at an illegal or inappropriate time Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown when a method is invoked at an illegal or inappropriate time. For * example:<br> * <pre> * void m(Collecion c) * { * c.iterator().remove(); * } * </pre> * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @author Andrew John Hughes (gnu_andrew@m...) * @since 1.1 * @status updated to 1.5 */ public class IllegalStateException extends RuntimeException { /** * Compatible with JDK 1.1+. */ private static final long serialVersionUID = -1848914673093119416L; /** * Create an exception without a message. */ public IllegalStateException() { } /** * Create an exception with a message. * * @param s the message */ public IllegalStateException(String s) { super(s); } /** * <p> * Constructs a <code>IllegalStateException</code> using * the specified error message, which should give further details * as to the reason for this exception. The specified cause * <code>Throwable</code> may be used to provide additional history, * with regards to the root of the problem. It is perfectly valid * for this to be null, if the cause of the problem is unknown. * </p> * <p> * <strong>Note</strong>: the detail message from the cause is not * automatically incorporated into the resulting detail message of * this exception. * </p> * * @param message the detail message, which should give the reason for * this exception being thrown. * @param cause the cause of this exception, or null if the cause * is unknown. * @since 1.5 */ public IllegalStateException(String message, Throwable cause) { super(message, cause); } /** * <p> * Constructs a <code>IllegalStateException</code> using * the specified cause <code>Throwable</code>, which may be used * to provide additional history, with regards to the root of the * problem. It is perfectly valid for this to be null, if the * cause of the problem is unknown. * </p> * <p> * The detail message is automatically constructed from the detail * message of the supplied causal exception. If the cause is null, * then the detail message will also be null. Otherwise, the detail * message of this exception will be that of the causal exception. * This makes this constructor very useful for simply wrapping another * exception. * </p> * * @param cause the cause of this exception, or null if the cause * is unknown. * @since 1.5 */ public IllegalStateException(Throwable cause) { super(cause); } } 1.1 jop/java/target/src/jdk/java/lang/IllegalThreadStateException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/IllegalThreadStateException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: IllegalThreadStateException.java =================================================================== /* IllegalThreadStateException.java -- thrown when trying to manipulate a Thread when it is not in an appropriate state Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown When trying to manipulate a Thread which is in an inappropriate * state. Since the documentation suggests that this can happen with * <code>Thread.suspend</code> or <code>Thread.resume</code>, but these * two methods are deprecated, this exception is likely very rare. * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @status updated to 1.4 */ public class IllegalThreadStateException extends IllegalArgumentException { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = -7626246362397460174L; /** * Create an exception without a message. */ public IllegalThreadStateException() { } /** * Create an exception with a message. * * @param s the message */ public IllegalThreadStateException(String s) { super(s); } } 1.1 jop/java/target/src/jdk/java/lang/IndexOutOfBoundsException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/IndexOutOfBoundsException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: IndexOutOfBoundsException.java =================================================================== /* IndexOutOfBoundsException.java -- thrown for an invalid index Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * This exception can be thrown to indicate an attempt to access an * index which is out of bounds on objects like String, Array, or Vector. * Usually any negative integer less than or equal to -1 and positive * integer greater than or equal to the size of the object is an index * which would be out of bounds. * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @status updated to 1.4 */ public class IndexOutOfBoundsException extends RuntimeException { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = 234122996006267687L; /** * Create an exception without a message. */ public IndexOutOfBoundsException() { } /** * Create an exception with a message. * * @param s the message */ public IndexOutOfBoundsException(String s) { super(s); } } 1.1 jop/java/target/src/jdk/java/lang/InstantiationException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/InstantiationException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: InstantiationException.java =================================================================== /* InstantiationException.java -- thrown when reflection cannot create an instance Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown when an attempt is made to use reflection to build a * non-instantiable class (an interface or abstract class). * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @see Class#newInstance() * @status updated to 1.4 */ public class InstantiationException extends Exception { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = -8441929162975509110L; /** * Create an exception without a message. */ public InstantiationException() { } /** * Create an exception with a message. * * @param s the message */ public InstantiationException(String s) { super(s); } } 1.1 jop/java/target/src/jdk/java/lang/InterruptedException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/InterruptedException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: InterruptedException.java =================================================================== /* InterruptedException.java -- thrown when a thread is interrupted Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown when a thread interrupts another thread which was previously * sleeping, waiting, or paused in some other way. See the * <code>interrupt</code> method of class <code>Thread</code>. * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @see Object#wait() * @see Object#wait(long) * @see Object#wait(long, int) * @see Thread#sleep(long) * @see Thread#interrupt() * @see Thread#interrupted() * @status updated to 1.4 */ public class InterruptedException extends Exception { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = 6700697376100628473L; /** * Create an exception without a message. */ public InterruptedException() { } /** * Create an exception with a message. * * * @param s the message */ public InterruptedException(String s) { super(s); } } 1.1 jop/java/target/src/jdk/java/lang/NegativeArraySizeException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/NegativeArraySizeException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: NegativeArraySizeException.java =================================================================== /* NegativeArraySizeException.java -- thrown on attempt to create array with a negative size Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown when an attempt is made to create an array with a negative * size. For example:<br> * <pre> * int i = -1; * int[] array = new int[i]; * </pre> * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @status updated to 1.4 */ public class NegativeArraySizeException extends RuntimeException { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = -8960118058596991861L; /** * Create an exception without a message. */ public NegativeArraySizeException() { } /** * Create an exception with a message. * * @param s the message */ public NegativeArraySizeException(String s) { super(s); } } 1.1 jop/java/target/src/jdk/java/lang/NoSuchFieldException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/NoSuchFieldException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: NoSuchFieldException.java =================================================================== /* NoSuchFieldException.java -- thrown when reflecting a non-existant field Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown to indicate the class does not have the specified field. This is * caused by a variety of reflection methods, when looking up a field by name. * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @since 1.1 * @status updated to 1.4 */ public class NoSuchFieldException extends Exception { /** * Compatible with JDK 1.1+. */ private static final long serialVersionUID = -6143714805279938260L; /** * Create an exception without a message. */ public NoSuchFieldException() { } /** * Create an exception with a message. * * @param s the message */ public NoSuchFieldException(String s) { super(s); } } 1.1 jop/java/target/src/jdk/java/lang/NoSuchMethodException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/NoSuchMethodException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: NoSuchMethodException.java =================================================================== /* NoSuchMethodException.java -- thrown when reflecting a non-existant method Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown to indicate the class does not have the specified method. This is * caused by a variety of reflection methods, when looking up a method by name. * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @status updated to 1.4 */ public class NoSuchMethodException extends Exception { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = 5034388446362600923L; /** * Create an exception without a message. */ public NoSuchMethodException() { } /** * Create an exception with a message. * * @param s the message */ public NoSuchMethodException(String s) { super(s); } } 1.1 jop/java/target/src/jdk/java/lang/NullPointerException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/NullPointerException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: NullPointerException.java =================================================================== /* NullPointerException.java -- thrown when using null instead of an object Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Thrown when attempting to use <code>null</code> where an object * is required. The Virtual Machine automatically throws this exception * for the following:<br><ul> * <li>Calling an instance method on a null object</li> * <li>Accessing or modifying a field of a null object</li> * <li>Taking the array length of a null array</li> * <li>Accessing or modifying the slots of a null array</li> * <li>Throwing a null Throwable</li> * <li>Synchronizing on a null object</li> * </ul> * <p>Applications should also throw NullPointerExceptions whenever * <code>null</code> is an inappropriate parameter to a method. * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @status updated to 1.4 */ public class NullPointerException extends RuntimeException { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = 5162710183389028792L; /** * Create an exception without a message. */ public NullPointerException() { } /** * Create an exception with a message. * * @param s the message */ public NullPointerException(String s) { super(s); } } 1.1 jop/java/target/src/jdk/java/lang/NumberFormatException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/NumberFormatException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: NumberFormatException.java =================================================================== /* NumberFormatException.java -- thrown when parsing a bad string as a number Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * Can be thrown when attempting to convert a <code>String</code> to * one of the numeric types, but the operation fails because the string * has the wrong format. * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @status updated to 1.4 */ public class NumberFormatException extends IllegalArgumentException { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = -2848938806368998894L; /** * Create an exception without a message. */ public NumberFormatException() { } /** * Create an exception with a message. * * @param s the message */ public NumberFormatException(String s) { super(s); } } 1.1 jop/java/target/src/jdk/java/lang/RuntimeException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/RuntimeException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: RuntimeException.java =================================================================== /* RuntimeException.java -- root of all unchecked exceptions Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * All exceptions which are subclasses of <code>RuntimeException</code> * can be thrown at any time during the execution of a Java virtual machine. * Methods which throw these exceptions are not required to declare them * in their throws clause. * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @author Eric Blake (ebb9@e...) * @status updated to 1.4 */ public class RuntimeException extends Exception { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = -7034897190745766939L; /** * Create an exception without a message. The cause remains uninitialized. * * @see #initCause(Throwable) */ public RuntimeException() { } /** * Create an exception with a message. The cause remains uninitialized. * * @param s the message string * @see #initCause(Throwable) */ public RuntimeException(String s) { super(s); } /** * Create an exception with a message and a cause. * * @param s the message string * @param cause the cause of this exception * @since 1.4 */ public RuntimeException(String s, Throwable cause) { super(s, cause); } /** * Create an exception with the given cause, and a message of * <code>cause == null ? null : cause.toString()</code>. * * @param cause the cause of this exception * @since 1.4 */ public RuntimeException(Throwable cause) { super(cause); } } 1.1 jop/java/target/src/jdk/java/lang/SecurityException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/SecurityException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: SecurityException.java =================================================================== /* SecurityException.java -- thrown to indicate a security violation Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * The security manager will throw this exception to indicate a security * violation. This can occur any time an operation is attempted which is * deemed unsafe by the current security policies. * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @author Andrew John Hughes (gnu_andrew@m...) * @see SecurityManager * @status updated to 1.5 */ public class SecurityException extends RuntimeException { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = 6878364983674394167L; /** * Create an exception without a message. */ public SecurityException() { } /** * Create an exception with a message. * * @param s the message */ public SecurityException(String s) { super(s); } /** * <p> * Constructs a <code>SecurityException</code> using * the specified error message, which should give further details * as to the reason for this exception. The specified cause * <code>Throwable</code> may be used to provide additional history, * with regards to the root of the problem. It is perfectly valid * for this to be null, if the cause of the problem is unknown. * </p> * <p> * <strong>Note</strong>: the detail message from the cause is not * automatically incorporated into the resulting detail message of * this exception. * </p> * * @param message the detail message, which should give the reason for * this exception being thrown. * @param cause the cause of this exception, or null if the cause * is unknown. * @since 1.5 */ public SecurityException(String message, Throwable cause) { super(message, cause); } /** * <p> * Constructs a <code>SecurityException</code> using * the specified cause <code>Throwable</code>, which may be used * to provide additional history, with regards to the root of the * problem. It is perfectly valid for this to be null, if the * cause of the problem is unknown. * </p> * <p> * The detail message is automatically constructed from the detail * message of the supplied causal exception. If the cause is null, * then the detail message will also be null. Otherwise, the detail * message of this exception will be that of the causal exception. * This makes this constructor very useful for simply wrapping another * exception. * </p> * * @param cause the cause of this exception, or null if the cause * is unknown. * @since 1.5 */ public SecurityException(Throwable cause) { super(cause); } } 1.1 jop/java/target/src/jdk/java/lang/StringIndexOutOfBoundsException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/StringIndexOutOfBoundsException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: StringIndexOutOfBoundsException.java =================================================================== /* StringIndexOutOfBoundsException.java -- thrown to indicate attempt to exceed string bounds Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * This exception can be thrown to indicate an attempt to access an index * which is out of bounds of a String. Any negative integer, and a positive * integer greater than or equal to the size of the string, is an index * which would be out of bounds. * * @author Brian Jones * @author Warren Levy (warrenl@c...) * @status updated to 1.4 */ public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException { /** * Compatible with JDK 1.0+. */ private static final long serialVersionUID = -6762910422159637258L; /** * Create an exception without a message. */ public StringIndexOutOfBoundsException() { } /** * Create an exception with a message. * * @param s the message */ public StringIndexOutOfBoundsException(String s) { super(s); } /** * Create an exception noting the illegal index. * * @param index the invalid index */ public StringIndexOutOfBoundsException(int index) { super("String index out of range: " + index); } } 1.1 jop/java/target/src/jdk/java/lang/TypeNotPresentException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/TypeNotPresentException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: TypeNotPresentException.java =================================================================== /* TypeNotPresentException.java -- Thrown when a string-based type is missing Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * <p> * Thrown when a type is accessed using a <code>String</code>-based * representation, but no definition of the supplied type is found. * This is effectively an unchecked equivalent of the existing * <code>ClassNotFound</code> exception. * </p> * <p> * It may occur due to an attempt to load a missing class, interface or * annotation, or when an undefined type variable is accessed. * </p> * * @author Tom Tromey (tromey@r...) * @author Andrew John Hughes (gnu_andrew@m...) * @see ClassNotFoundException * @since 1.5 */ public class TypeNotPresentException extends RuntimeException { private static final long serialVersionUID = -5101214195716534496L; /** * Constructs a <code>TypeNotPresentException</code> for * the supplied type. The specified cause <code>Throwable</code> * may be used to provide additional history, with regards to the * root of the problem. It is perfectly valid for this to be null, * if the cause of the problem is unknown. * * @param typeName the name of the missing type. * @param cause the cause of this exception, or null if the cause * is unknown. */ public TypeNotPresentException(String typeName, Throwable cause) { super("type \"" + typeName + "\" not found", cause); this.typeName = typeName; } /** * Returns the name of the missing type. * * @return the missing type's name. */ public String typeName() { return typeName; } /** * The name of the missing type. * * @serial the missing type's name. */ // Name fixed by serialization. private String typeName; } 1.1 jop/java/target/src/jdk/java/lang/UnsupportedOperationException.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/jdk/java/lang/UnsupportedOperationException.java?rev=1.1&content-type=text/x-cvsweb-markup Index: UnsupportedOperationException.java =================================================================== /* UnsupportedOperationException.java -- thrown when an operation is not supported Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ package java.lang; /** * This exception is thrown by an object when an operation is * requested of it that it does not support. * * @author Warren Levy (warrenl@c...) * @author Andrew John Hughes (gnu_andrew@m...) * @since 1.2 * @status updated to 1.5 */ public class UnsupportedOperationException extends RuntimeException { /** * Compatible with JDK 1.2+. */ private static final long serialVersionUID = -1242599979055084673L; /** * Create an exception without a message. */ public UnsupportedOperationException() { } /** * Create an exception with a message. * * @param s the message */ public UnsupportedOperationException(String s) { super(s); } /** * <p> * Constructs a <code>UnsupportedOperationException</code> using * the specified error message, which should give further details * as to the reason for this exception. The specified cause * <code>Throwable</code> may be used to provide additional history, * with regards to the root of the problem. It is perfectly valid * for this to be null, if the cause of the problem is unknown. * </p> * <p> * <strong>Note</strong>: the detail message from the cause is not * automatically incorporated into the resulting detail message of * this exception. * </p> * * @param message the detail message, which should give the reason for * this exception being thrown. * @param cause the cause of this exception, or null if the cause * is unknown. * @since 1.5 */ public UnsupportedOperationException(String message, Throwable cause) { super(message, cause); } /** * <p> * Constructs a <code>UnsupportedOperationException</code> using * the specified cause <code>Throwable</code>, which may be used * to provide additional history, with regards to the root of the * problem. It is perfectly valid for this to be null, if the * cause of the problem is unknown. * </p> * <p> * The detail message is automatically constructed from the detail * message of the supplied causal exception. If the cause is null, * then the detail message will also be null. Otherwise, the detail * message of this exception will be that of the causal exception. * This makes this constructor very useful for simply wrapping another * exception. * </p> * * @param cause the cause of this exception, or null if the cause * is unknown. * @since 1.5 */ public UnsupportedOperationException(Throwable cause) { super(cause); } }

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.