Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 31516 invoked from network); 20 Aug 2006 20:55:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Aug 2006 20:55:42 -0000 Received: (qmail 32631 invoked by uid 500); 20 Aug 2006 20:55:42 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 32603 invoked by uid 500); 20 Aug 2006 20:55:41 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 32592 invoked by uid 99); 20 Aug 2006 20:55:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Aug 2006 13:55:41 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Aug 2006 13:55:33 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 761B61A9827; Sun, 20 Aug 2006 13:54:47 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r433041 [6/13] - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang: ./ ref/ reflect/ Date: Sun, 20 Aug 2006 20:54:31 -0000 To: harmony-commits@incubator.apache.org From: ndbeyer@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060820205447.761B61A9827@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchFieldException.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchFieldException.java?rev=433041&r1=433040&r2=433041&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchFieldException.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchFieldException.java Sun Aug 20 13:54:27 2006 @@ -1,44 +1,44 @@ -/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.lang; - - -/** - * This exception is thrown when a program attempts to access a field which does - * not exist in a class - */ -public class NoSuchFieldException extends java.lang.Exception { - - private static final long serialVersionUID = -6143714805279938260L; - - /** - * Constructs a new instance of this class with its walkback filled in. - */ - public NoSuchFieldException() { - super(); - } - - /** - * Constructs a new instance of this class with its walkback and message - * filled in. - * - * @param detailMessage - * String The detail message for the exception. - */ - public NoSuchFieldException(String detailMessage) { - super(detailMessage); - } -} +/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package java.lang; + + +/** + * This exception is thrown when a program attempts to access a field which does + * not exist in a class + */ +public class NoSuchFieldException extends java.lang.Exception { + + private static final long serialVersionUID = -6143714805279938260L; + + /** + * Constructs a new instance of this class with its walkback filled in. + */ + public NoSuchFieldException() { + super(); + } + + /** + * Constructs a new instance of this class with its walkback and message + * filled in. + * + * @param detailMessage + * String The detail message for the exception. + */ + public NoSuchFieldException(String detailMessage) { + super(detailMessage); + } +} Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchFieldException.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchMethodError.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchMethodError.java?rev=433041&r1=433040&r2=433041&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchMethodError.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchMethodError.java Sun Aug 20 13:54:27 2006 @@ -1,45 +1,45 @@ -/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.lang; - - -/** - * This error is thrown when the VM notices that a an attempt is being made to - * reference a method of a class which does not exist in that class. - */ -public class NoSuchMethodError extends IncompatibleClassChangeError { - - private static final long serialVersionUID = -3765521442372831335L; - - /** - * Constructs a new instance of this class with its walkback filled in. - */ - public NoSuchMethodError() { - super(); - } - - /** - * Constructs a new instance of this class with its walkback and message - * filled in. - * - * @param detailMessage - * String The detail message for the exception. - */ - public NoSuchMethodError(String detailMessage) { - super(detailMessage); - } - -} +/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package java.lang; + + +/** + * This error is thrown when the VM notices that a an attempt is being made to + * reference a method of a class which does not exist in that class. + */ +public class NoSuchMethodError extends IncompatibleClassChangeError { + + private static final long serialVersionUID = -3765521442372831335L; + + /** + * Constructs a new instance of this class with its walkback filled in. + */ + public NoSuchMethodError() { + super(); + } + + /** + * Constructs a new instance of this class with its walkback and message + * filled in. + * + * @param detailMessage + * String The detail message for the exception. + */ + public NoSuchMethodError(String detailMessage) { + super(detailMessage); + } + +} Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchMethodError.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchMethodException.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchMethodException.java?rev=433041&r1=433040&r2=433041&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchMethodException.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchMethodException.java Sun Aug 20 13:54:27 2006 @@ -1,45 +1,45 @@ -/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.lang; - - -/** - * This exception is thrown when a program attempts to access a method which - * does not exist in a class. - */ -public class NoSuchMethodException extends java.lang.Exception { - - private static final long serialVersionUID = 5034388446362600923L; - - /** - * Constructs a new instance of this class with its walkback filled in. - */ - public NoSuchMethodException() { - super(); - } - - /** - * Constructs a new instance of this class with its walkback and message - * filled in. - * - * @param detailMessage - * String The detail message for the exception. - */ - public NoSuchMethodException(String detailMessage) { - super(detailMessage); - } - -} +/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package java.lang; + + +/** + * This exception is thrown when a program attempts to access a method which + * does not exist in a class. + */ +public class NoSuchMethodException extends java.lang.Exception { + + private static final long serialVersionUID = 5034388446362600923L; + + /** + * Constructs a new instance of this class with its walkback filled in. + */ + public NoSuchMethodException() { + super(); + } + + /** + * Constructs a new instance of this class with its walkback and message + * filled in. + * + * @param detailMessage + * String The detail message for the exception. + */ + public NoSuchMethodException(String detailMessage) { + super(detailMessage); + } + +} Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NoSuchMethodException.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NullPointerException.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NullPointerException.java?rev=433041&r1=433040&r2=433041&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NullPointerException.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NullPointerException.java Sun Aug 20 13:54:27 2006 @@ -1,46 +1,46 @@ -/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.lang; - - -/** - * This runtime exception is thrown when an attempt is made to access a field or - * method of an instance or an element of an array when there is no instance or - * array to use (i.e. the pointer is null). - */ -public class NullPointerException extends RuntimeException { - - private static final long serialVersionUID = 5162710183389028792L; - - /** - * Constructs a new instance of this class with its walkback filled in. - */ - public NullPointerException() { - super(); - } - - /** - * Constructs a new instance of this class with its walkback and message - * filled in. - * - * @param detailMessage - * String The detail message for the exception. - */ - public NullPointerException(String detailMessage) { - super(detailMessage); - } - -} +/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package java.lang; + + +/** + * This runtime exception is thrown when an attempt is made to access a field or + * method of an instance or an element of an array when there is no instance or + * array to use (i.e. the pointer is null). + */ +public class NullPointerException extends RuntimeException { + + private static final long serialVersionUID = 5162710183389028792L; + + /** + * Constructs a new instance of this class with its walkback filled in. + */ + public NullPointerException() { + super(); + } + + /** + * Constructs a new instance of this class with its walkback and message + * filled in. + * + * @param detailMessage + * String The detail message for the exception. + */ + public NullPointerException(String detailMessage) { + super(detailMessage); + } + +} Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NullPointerException.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Number.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Number.java?rev=433041&r1=433040&r2=433041&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Number.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Number.java Sun Aug 20 13:54:27 2006 @@ -1,78 +1,78 @@ -/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.lang; - - -/** - * Number is the abstract superclass of the classes which represent numeric base - * types (i.e. all but Character, Boolean, and Void). - */ -public abstract class Number implements java.io.Serializable { - - private static final long serialVersionUID = -8742448824652078965L; - - /** - * Number constructor. Included for spec compatability. - */ - public Number() { - } - - /** - * Answers the byte value which the receiver represents - * - * @return byte the value of the receiver. - */ - public byte byteValue() { - return (byte) intValue(); - } - - /** - * Answers the double value which the receiver represents - * - * @return double the value of the receiver. - */ - public abstract double doubleValue(); - - /** - * Answers the float value which the receiver represents - * - * @return float the value of the receiver. - */ - public abstract float floatValue(); - - /** - * Answers the int value which the receiver represents - * - * @return int the value of the receiver. - */ - public abstract int intValue(); - - /** - * Answers the long value which the receiver represents - * - * @return long the value of the receiver. - */ - public abstract long longValue(); - - /** - * Answers the short value which the receiver represents - * - * @return short the value of the receiver. - */ - public short shortValue() { - return (short) intValue(); - } -} +/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package java.lang; + + +/** + * Number is the abstract superclass of the classes which represent numeric base + * types (i.e. all but Character, Boolean, and Void). + */ +public abstract class Number implements java.io.Serializable { + + private static final long serialVersionUID = -8742448824652078965L; + + /** + * Number constructor. Included for spec compatability. + */ + public Number() { + } + + /** + * Answers the byte value which the receiver represents + * + * @return byte the value of the receiver. + */ + public byte byteValue() { + return (byte) intValue(); + } + + /** + * Answers the double value which the receiver represents + * + * @return double the value of the receiver. + */ + public abstract double doubleValue(); + + /** + * Answers the float value which the receiver represents + * + * @return float the value of the receiver. + */ + public abstract float floatValue(); + + /** + * Answers the int value which the receiver represents + * + * @return int the value of the receiver. + */ + public abstract int intValue(); + + /** + * Answers the long value which the receiver represents + * + * @return long the value of the receiver. + */ + public abstract long longValue(); + + /** + * Answers the short value which the receiver represents + * + * @return short the value of the receiver. + */ + public short shortValue() { + return (short) intValue(); + } +} Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Number.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NumberFormatException.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NumberFormatException.java?rev=433041&r1=433040&r2=433041&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NumberFormatException.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NumberFormatException.java Sun Aug 20 13:54:27 2006 @@ -1,44 +1,44 @@ -/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.lang; - - -/** - * This runtime exception is thrown when a "string to number" conversion routine - * is passed an invalid value. - */ -public class NumberFormatException extends java.lang.IllegalArgumentException { - - private static final long serialVersionUID = -2848938806368998894L; - - /** - * Constructs a new instance of this class with its walkback filled in. - */ - public NumberFormatException() { - super(); - } - - /** - * Constructs a new instance of this class with its walkback and message - * filled in. - * - * @param detailMessage - * String The detail message for the exception. - */ - public NumberFormatException(String detailMessage) { - super(detailMessage); - } -} +/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package java.lang; + + +/** + * This runtime exception is thrown when a "string to number" conversion routine + * is passed an invalid value. + */ +public class NumberFormatException extends java.lang.IllegalArgumentException { + + private static final long serialVersionUID = -2848938806368998894L; + + /** + * Constructs a new instance of this class with its walkback filled in. + */ + public NumberFormatException() { + super(); + } + + /** + * Constructs a new instance of this class with its walkback and message + * filled in. + * + * @param detailMessage + * String The detail message for the exception. + */ + public NumberFormatException(String detailMessage) { + super(detailMessage); + } +} Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/NumberFormatException.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/OutOfMemoryError.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/OutOfMemoryError.java?rev=433041&r1=433040&r2=433041&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/OutOfMemoryError.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/OutOfMemoryError.java Sun Aug 20 13:54:27 2006 @@ -1,46 +1,46 @@ -/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.lang; - - -/** - * This error is thrown when a request is made for more memory either as a - * result of the running program, or because of the internal behavior of the - * virtual machine which can not be satisfied using the available platform - * resources. - */ -public class OutOfMemoryError extends java.lang.VirtualMachineError { - - private static final long serialVersionUID = 8228564086184010517L; - - /** - * Constructs a new instance of this class with its walkback filled in. - */ - public OutOfMemoryError() { - super(); - } - - /** - * Constructs a new instance of this class with its walkback and message - * filled in. - * - * @param detailMessage - * String The detail message for the exception. - */ - public OutOfMemoryError(String detailMessage) { - super(detailMessage); - } -} +/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package java.lang; + + +/** + * This error is thrown when a request is made for more memory either as a + * result of the running program, or because of the internal behavior of the + * virtual machine which can not be satisfied using the available platform + * resources. + */ +public class OutOfMemoryError extends java.lang.VirtualMachineError { + + private static final long serialVersionUID = 8228564086184010517L; + + /** + * Constructs a new instance of this class with its walkback filled in. + */ + public OutOfMemoryError() { + super(); + } + + /** + * Constructs a new instance of this class with its walkback and message + * filled in. + * + * @param detailMessage + * String The detail message for the exception. + */ + public OutOfMemoryError(String detailMessage) { + super(detailMessage); + } +} Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/OutOfMemoryError.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Process.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Process.java?rev=433041&r1=433040&r2=433041&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Process.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Process.java Sun Aug 20 13:54:27 2006 @@ -1,84 +1,84 @@ -/* Copyright 1998, 2004 The Apache Software Foundation or its licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.lang; - - -import java.io.InputStream; -import java.io.OutputStream; - -/** - * Instances of class Process provide control of and access to platform - * processes. - */ -public abstract class Process { - - /** - * Terimates the receiver and closes any associated streams. - */ - abstract public void destroy(); - - /** - * Answers the exit value of the receiving Process. It is available only - * when the OS subprocess is finished. - * - * @return The exit value of the receiver. - * - * @throws IllegalThreadStateException - * If the receiver has not terminated. - */ - abstract public int exitValue(); - - /** - * Answers the receiver's error output stream. - *

- * Note: This is an InputStream which allows reading of the other threads - * "stderr". - * - * @return The error stream associated with the receiver - */ - abstract public InputStream getErrorStream(); - - /** - * Answers the receiver's standard input stream - *

- * Note: This is an InputStream which allows reading from the other process' - * "stdout". - * - * @return The receiver's process' stdin. - */ - abstract public InputStream getInputStream(); - - /** - * Answers the receiver's standard output stream - *

- * Note: This is an OutputStream which allows writing to the other process' - * "stdin". - * - * @return The receiver's process' stdout. - */ - abstract public OutputStream getOutputStream(); - - /** - * Causes the calling thread to wait for the process associated with the - * receiver to finish executing. - * - * @return The exit value of the Process being waited on - * - * @throws InterruptedException - * If the calling thread is interrupted - */ - abstract public int waitFor() throws InterruptedException; -} +/* Copyright 1998, 2004 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package java.lang; + + +import java.io.InputStream; +import java.io.OutputStream; + +/** + * Instances of class Process provide control of and access to platform + * processes. + */ +public abstract class Process { + + /** + * Terimates the receiver and closes any associated streams. + */ + abstract public void destroy(); + + /** + * Answers the exit value of the receiving Process. It is available only + * when the OS subprocess is finished. + * + * @return The exit value of the receiver. + * + * @throws IllegalThreadStateException + * If the receiver has not terminated. + */ + abstract public int exitValue(); + + /** + * Answers the receiver's error output stream. + *

+ * Note: This is an InputStream which allows reading of the other threads + * "stderr". + * + * @return The error stream associated with the receiver + */ + abstract public InputStream getErrorStream(); + + /** + * Answers the receiver's standard input stream + *

+ * Note: This is an InputStream which allows reading from the other process' + * "stdout". + * + * @return The receiver's process' stdin. + */ + abstract public InputStream getInputStream(); + + /** + * Answers the receiver's standard output stream + *

+ * Note: This is an OutputStream which allows writing to the other process' + * "stdin". + * + * @return The receiver's process' stdout. + */ + abstract public OutputStream getOutputStream(); + + /** + * Causes the calling thread to wait for the process associated with the + * receiver to finish executing. + * + * @return The exit value of the Process being waited on + * + * @throws InterruptedException + * If the calling thread is interrupted + */ + abstract public int waitFor() throws InterruptedException; +} Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Process.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Readable.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Readable.java?rev=433041&r1=433040&r2=433041&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Readable.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Readable.java Sun Aug 20 13:54:27 2006 @@ -1,41 +1,41 @@ -/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.lang; - -import java.io.IOException; -import java.nio.CharBuffer; - -/** - * Readable marks that the implementing class provides character sequence. - * Readable gives a reference to character sequence from within itself to caller - * through a CharBuffer parameter of the read - * method. - */ -public interface Readable { - - /** - * Reads the characters into the given CharBuffer. The - * maximum number of characters read is CharBuffer.remaining(). - * - * @param cb - * the buffer to be filled in by the characters read - * @return the number of characters actually read, or -1 if this - * Readable reaches its end - * @throws IOException - * if some I/O operations fail - */ - int read(CharBuffer cb) throws IOException; -} +/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package java.lang; + +import java.io.IOException; +import java.nio.CharBuffer; + +/** + * Readable marks that the implementing class provides character sequence. + * Readable gives a reference to character sequence from within itself to caller + * through a CharBuffer parameter of the read + * method. + */ +public interface Readable { + + /** + * Reads the characters into the given CharBuffer. The + * maximum number of characters read is CharBuffer.remaining(). + * + * @param cb + * the buffer to be filled in by the characters read + * @return the number of characters actually read, or -1 if this + * Readable reaches its end + * @throws IOException + * if some I/O operations fail + */ + int read(CharBuffer cb) throws IOException; +} Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Readable.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Runnable.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Runnable.java?rev=433041&r1=433040&r2=433041&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Runnable.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Runnable.java Sun Aug 20 13:54:27 2006 @@ -1,30 +1,30 @@ -/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.lang; - - -/** - * The runnable interface must be implemented by all classes which want to be - * run as threads. - * - * @see Thread - */ -public interface Runnable { - /** - * Begin doing the active part of the class' code. - */ - public void run(); -} +/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package java.lang; + + +/** + * The runnable interface must be implemented by all classes which want to be + * run as threads. + * + * @see Thread + */ +public interface Runnable { + /** + * Begin doing the active part of the class' code. + */ + public void run(); +} Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Runnable.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/RuntimeException.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/RuntimeException.java?rev=433041&r1=433040&r2=433041&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/RuntimeException.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/RuntimeException.java Sun Aug 20 13:54:27 2006 @@ -1,68 +1,68 @@ -/* Copyright 1998, 2004 The Apache Software Foundation or its licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.lang; - - -/** - * This class is the superclass of all classes which represent exceptional - * conditions which occur as a result of the running of the virtual machine. - */ -public class RuntimeException extends Exception { - - private static final long serialVersionUID = -7034897190745766939L; - - /** - * Constructs a new instance of this class with its walkback filled in. - */ - public RuntimeException() { - super(); - } - - /** - * Constructs a new instance of this class with its walkback and message - * filled in. - * - * @param detailMessage - * String The detail message for the exception. - */ - public RuntimeException(String detailMessage) { - super(detailMessage); - } - - /** - * Constructs a new instance of this class with its walkback, message and - * cause filled in. - * - * @param detailMessage - * String The detail message for the exception. - * @param throwable - * The cause of this Throwable - */ - public RuntimeException(String detailMessage, Throwable throwable) { - super(detailMessage, throwable); - } - - /** - * Constructs a new instance of this class with its walkback and cause - * filled in. - * - * @param throwable - * The cause of this Throwable - */ - public RuntimeException(Throwable throwable) { - super(throwable); - } -} +/* Copyright 1998, 2004 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package java.lang; + + +/** + * This class is the superclass of all classes which represent exceptional + * conditions which occur as a result of the running of the virtual machine. + */ +public class RuntimeException extends Exception { + + private static final long serialVersionUID = -7034897190745766939L; + + /** + * Constructs a new instance of this class with its walkback filled in. + */ + public RuntimeException() { + super(); + } + + /** + * Constructs a new instance of this class with its walkback and message + * filled in. + * + * @param detailMessage + * String The detail message for the exception. + */ + public RuntimeException(String detailMessage) { + super(detailMessage); + } + + /** + * Constructs a new instance of this class with its walkback, message and + * cause filled in. + * + * @param detailMessage + * String The detail message for the exception. + * @param throwable + * The cause of this Throwable + */ + public RuntimeException(String detailMessage, Throwable throwable) { + super(detailMessage, throwable); + } + + /** + * Constructs a new instance of this class with its walkback and cause + * filled in. + * + * @param throwable + * The cause of this Throwable + */ + public RuntimeException(Throwable throwable) { + super(throwable); + } +} Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/RuntimeException.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/RuntimePermission.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/RuntimePermission.java?rev=433041&r1=433040&r2=433041&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/RuntimePermission.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/RuntimePermission.java Sun Aug 20 13:54:27 2006 @@ -1,97 +1,97 @@ -/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.lang; - - -import java.security.BasicPermission; - -/** - * RuntimePermission objects represent access to runtime support. - */ -public final class RuntimePermission extends BasicPermission { - - private static final long serialVersionUID = 7399184964622342223L; - - /** - * Constants for runtime permissions used in this package. - */ - static final RuntimePermission permissionToSetSecurityManager = new RuntimePermission( - "setSecurityManager"); - - static final RuntimePermission permissionToCreateSecurityManager = new RuntimePermission( - "createSecurityManager"); - - static final RuntimePermission permissionToGetProtectionDomain = new RuntimePermission( - "getProtectionDomain"); - - static final RuntimePermission permissionToGetClassLoader = new RuntimePermission( - "getClassLoader"); - - static final RuntimePermission permissionToCreateClassLoader = new RuntimePermission( - "createClassLoader"); - - static final RuntimePermission permissionToModifyThread = new RuntimePermission( - "modifyThread"); - - static final RuntimePermission permissionToModifyThreadGroup = new RuntimePermission( - "modifyThreadGroup"); - - static final RuntimePermission permissionToExitVM = new RuntimePermission( - "exitVM"); - - static final RuntimePermission permissionToReadFileDescriptor = new RuntimePermission( - "readFileDescriptor"); - - static final RuntimePermission permissionToWriteFileDescriptor = new RuntimePermission( - "writeFileDescriptor"); - - static final RuntimePermission permissionToQueuePrintJob = new RuntimePermission( - "queuePrintJob"); - - static final RuntimePermission permissionToSetFactory = new RuntimePermission( - "setFactory"); - - static final RuntimePermission permissionToSetIO = new RuntimePermission( - "setIO"); - - static final RuntimePermission permissionToStopThread = new RuntimePermission( - "stopThread"); - - /** - * Creates an instance of this class with the given name. - * - * - * @param permissionName - * String the name of the new permission. - */ - public RuntimePermission(String permissionName) { - super(permissionName); - } - - /** - * Creates an instance of this class with the given name and action list. - * The action list is ignored. - * - * - * @param name - * String the name of the new permission. - * @param actions - * String ignored. - */ - public RuntimePermission(String name, String actions) { - super(name, actions); - } -} +/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package java.lang; + + +import java.security.BasicPermission; + +/** + * RuntimePermission objects represent access to runtime support. + */ +public final class RuntimePermission extends BasicPermission { + + private static final long serialVersionUID = 7399184964622342223L; + + /** + * Constants for runtime permissions used in this package. + */ + static final RuntimePermission permissionToSetSecurityManager = new RuntimePermission( + "setSecurityManager"); + + static final RuntimePermission permissionToCreateSecurityManager = new RuntimePermission( + "createSecurityManager"); + + static final RuntimePermission permissionToGetProtectionDomain = new RuntimePermission( + "getProtectionDomain"); + + static final RuntimePermission permissionToGetClassLoader = new RuntimePermission( + "getClassLoader"); + + static final RuntimePermission permissionToCreateClassLoader = new RuntimePermission( + "createClassLoader"); + + static final RuntimePermission permissionToModifyThread = new RuntimePermission( + "modifyThread"); + + static final RuntimePermission permissionToModifyThreadGroup = new RuntimePermission( + "modifyThreadGroup"); + + static final RuntimePermission permissionToExitVM = new RuntimePermission( + "exitVM"); + + static final RuntimePermission permissionToReadFileDescriptor = new RuntimePermission( + "readFileDescriptor"); + + static final RuntimePermission permissionToWriteFileDescriptor = new RuntimePermission( + "writeFileDescriptor"); + + static final RuntimePermission permissionToQueuePrintJob = new RuntimePermission( + "queuePrintJob"); + + static final RuntimePermission permissionToSetFactory = new RuntimePermission( + "setFactory"); + + static final RuntimePermission permissionToSetIO = new RuntimePermission( + "setIO"); + + static final RuntimePermission permissionToStopThread = new RuntimePermission( + "stopThread"); + + /** + * Creates an instance of this class with the given name. + * + * + * @param permissionName + * String the name of the new permission. + */ + public RuntimePermission(String permissionName) { + super(permissionName); + } + + /** + * Creates an instance of this class with the given name and action list. + * The action list is ignored. + * + * + * @param name + * String the name of the new permission. + * @param actions + * String ignored. + */ + public RuntimePermission(String name, String actions) { + super(name, actions); + } +} Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/RuntimePermission.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SecurityException.java URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SecurityException.java?rev=433041&r1=433040&r2=433041&view=diff ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SecurityException.java (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SecurityException.java Sun Aug 20 13:54:27 2006 @@ -1,62 +1,62 @@ -/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.lang; - - -/** - * This runtime exception is thrown when a security manager check fails. - */ -public class SecurityException extends java.lang.RuntimeException { - - private static final long serialVersionUID = 6878364983674394167L; - - /** - * Constructs a new instance of this class with its walkback filled in. - */ - public SecurityException() { - super(); - } - - /** - * Constructs a new instance of this class with its walkback and message - * filled in. - * - * @param detailMessage - * String The detail message for the exception. - */ - public SecurityException(String detailMessage) { - super(detailMessage); - } - - /** - *

Constructs a new instance with a message and cause.

- * @param message The message to assign to this exception. - * @param cause The optional cause of this exception; may be null. - * @since 1.5 - */ - public SecurityException(String message, Throwable cause) { - super(message, cause); - } - - /** - *

Constructs a new instance with a cause.

- * @param cause The optional cause of this exception; may be null. - * @since 1.5 - */ - public SecurityException(Throwable cause) { - super((cause == null ? null : cause.toString()), cause); - } -} +/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package java.lang; + + +/** + * This runtime exception is thrown when a security manager check fails. + */ +public class SecurityException extends java.lang.RuntimeException { + + private static final long serialVersionUID = 6878364983674394167L; + + /** + * Constructs a new instance of this class with its walkback filled in. + */ + public SecurityException() { + super(); + } + + /** + * Constructs a new instance of this class with its walkback and message + * filled in. + * + * @param detailMessage + * String The detail message for the exception. + */ + public SecurityException(String detailMessage) { + super(detailMessage); + } + + /** + *

Constructs a new instance with a message and cause.

+ * @param message The message to assign to this exception. + * @param cause The optional cause of this exception; may be null. + * @since 1.5 + */ + public SecurityException(String message, Throwable cause) { + super(message, cause); + } + + /** + *

Constructs a new instance with a cause.

+ * @param cause The optional cause of this exception; may be null. + * @since 1.5 + */ + public SecurityException(Throwable cause) { + super((cause == null ? null : cause.toString()), cause); + } +} Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/SecurityException.java ------------------------------------------------------------------------------ svn:eol-style = native