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
d6383631
Commit
d6383631
authored
Oct 01, 2003
by
Tom Tromey
Committed by
Tom Tromey
Oct 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gnu/gcj/runtime/FirstThread.java (getMain): Fixed indentation.
From-SVN: r71998
parent
1358cdc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
14 deletions
+17
-14
libjava/ChangeLog
+4
-0
libjava/gnu/gcj/runtime/FirstThread.java
+13
-14
No files found.
libjava/ChangeLog
View file @
d6383631
2003
-
10
-
01
Tom
Tromey
<
tromey
@
redhat
.
com
>
*
gnu
/
gcj
/
runtime
/
FirstThread
.
java
(
getMain
):
Fixed
indentation
.
2003
-
10
-
01
Andrew
Haley
<
aph
@
redhat
.
com
>
2003
-
10
-
01
Andrew
Haley
<
aph
@
redhat
.
com
>
*
java
/
lang
/
natClass
.
cc
(
initializeClass
):
Check
for
otable
and
*
java
/
lang
/
natClass
.
cc
(
initializeClass
):
Check
for
otable
and
...
...
libjava/gnu/gcj/runtime/FirstThread.java
View file @
d6383631
// FirstThread.java - Implementation of very first thread.
// FirstThread.java - Implementation of very first thread.
/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation
/* Copyright (C) 1998, 1999, 2000, 2001
, 2003
Free Software Foundation
This file is part of libgcj.
This file is part of libgcj.
...
@@ -57,22 +57,21 @@ final class FirstThread extends Thread
...
@@ -57,22 +57,21 @@ final class FirstThread extends Thread
private
String
getMain
(
String
name
)
private
String
getMain
(
String
name
)
{
{
String
mainName
=
null
;
String
mainName
=
null
;
try
{
try
{
JarFile
j
=
new
JarFile
(
name
);
JarFile
j
=
new
JarFile
(
name
);
Attributes
a
=
j
.
getManifest
().
getMainAttributes
();
Attributes
a
=
j
.
getManifest
().
getMainAttributes
();
mainName
=
a
.
getValue
(
Attributes
.
Name
.
MAIN_CLASS
);
}
mainName
=
a
.
getValue
(
Attributes
.
Name
.
MAIN_CLASS
);
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
// Ignore.
// empty
}
}
if
(
mainName
==
null
)
if
(
mainName
==
null
)
{
{
System
.
err
.
println
(
"Failed to load Main-Class manifest attribute from\n
"
System
.
err
.
println
(
"Failed to load Main-Class manifest attribute from
"
+
name
);
+
name
);
System
.
exit
(
1
);
System
.
exit
(
1
);
}
}
return
mainName
;
return
mainName
;
...
...
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