Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
0a3fbe88
Commit
0a3fbe88
authored
Oct 04, 2002
by
Mark Wielaard
Committed by
Mark Wielaard
Oct 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* java/lang/Throwable.java: Remerge with Classpath.
From-SVN: r57823
parent
f91f86e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
libjava/ChangeLog
+4
-0
libjava/java/lang/Throwable.java
+8
-14
No files found.
libjava/ChangeLog
View file @
0a3fbe88
2002
-
10
-
04
Mark
Wielaard
<
mark
@
klomp
.
org
>
*
java
/
lang
/
Throwable
.
java
:
Remerge
with
Classpath
.
2002
-
10
-
04
Michael
Koch
<
konqueror
@
gmx
.
de
>
2002
-
10
-
04
Michael
Koch
<
konqueror
@
gmx
.
de
>
*
java
/
net
/
InetAddress
.
java
:
*
java
/
net
/
InetAddress
.
java
:
...
...
libjava/java/lang/Throwable.java
View file @
0a3fbe88
/* java.lang.Throwable -- Reference implementation of root class for
/* java.lang.Throwable -- Root class for all Exceptions and Errors
all Exceptions and Errors
Copyright (C) 1998, 1999, 2002 Free Software Foundation, Inc.
Copyright (C) 1998, 1999, 2002 Free Software Foundation, Inc.
This file is part of GNU Classpath.
This file is part of GNU Classpath.
...
@@ -46,12 +45,6 @@ import java.io.ObjectInputStream;
...
@@ -46,12 +45,6 @@ import java.io.ObjectInputStream;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.OutputStream
;
import
java.io.OutputStream
;
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
* "The Java Language Specification", ISBN 0-201-63451-1
* Status: Sufficient for compiled code, but methods applicable to
* bytecode not implemented. JDK 1.1.
*/
/**
/**
* Throwable is the superclass of all exceptions that can be raised.
* Throwable is the superclass of all exceptions that can be raised.
*
*
...
@@ -166,7 +159,7 @@ public class Throwable implements Serializable
...
@@ -166,7 +159,7 @@ public class Throwable implements Serializable
public
Throwable
(
String
message
)
public
Throwable
(
String
message
)
{
{
fillInStackTrace
();
fillInStackTrace
();
detailMessage
=
message
;
detailMessage
=
message
;
}
}
/**
/**
...
@@ -373,7 +366,7 @@ public class Throwable implements Serializable
...
@@ -373,7 +366,7 @@ public class Throwable implements Serializable
}
}
/**
/**
*
<p>
Prints the exception, the detailed message and the stack trace
* Prints the exception, the detailed message and the stack trace
* associated with this Throwable to the given <code>PrintWriter</code>.
* associated with this Throwable to the given <code>PrintWriter</code>.
* The actual output written is implemention specific. Use the result of
* The actual output written is implemention specific. Use the result of
* <code>getStackTrace()</code> when more precise information is needed.
* <code>getStackTrace()</code> when more precise information is needed.
...
@@ -533,7 +526,7 @@ public class Throwable implements Serializable
...
@@ -533,7 +526,7 @@ public class Throwable implements Serializable
* serialization according to the context of the remote call.
* serialization according to the context of the remote call.
* <p>
* <p>
* The contents of the given stacktrace is copied so changes to the
* The contents of the given stacktrace is copied so changes to the
* original
*
array do not change the stack trace elements of this
* original array do not change the stack trace elements of this
* throwable.
* throwable.
*
*
* @param stackTrace the new trace to use
* @param stackTrace the new trace to use
...
@@ -546,10 +539,11 @@ public class Throwable implements Serializable
...
@@ -546,10 +539,11 @@ public class Throwable implements Serializable
StackTraceElement
[]
st
=
new
StackTraceElement
[
i
];
StackTraceElement
[]
st
=
new
StackTraceElement
[
i
];
while
(--
i
>=
0
)
while
(--
i
>=
0
)
if
(
stackTrace
[
i
]
==
null
)
{
throw
new
NullPointerException
();
else
st
[
i
]
=
stackTrace
[
i
];
st
[
i
]
=
stackTrace
[
i
];
if
(
st
[
i
]
==
null
)
throw
new
NullPointerException
(
"Element "
+
i
+
" null"
);
}
this
.
stackTrace
=
st
;
this
.
stackTrace
=
st
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment