diff options
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/gnu/gcj/runtime/FirstThread.java | 27 |
2 files changed, 17 insertions, 14 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index a86041a..e8c98bd 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2003-10-01 Tom Tromey <tromey@redhat.com> + + * gnu/gcj/runtime/FirstThread.java (getMain): Fixed indentation. + 2003-10-01 Andrew Haley <aph@redhat.com> * java/lang/natClass.cc (initializeClass): Check for otable and diff --git a/libjava/gnu/gcj/runtime/FirstThread.java b/libjava/gnu/gcj/runtime/FirstThread.java index fbc7a5b..d6d9a8075 100644 --- a/libjava/gnu/gcj/runtime/FirstThread.java +++ b/libjava/gnu/gcj/runtime/FirstThread.java @@ -1,6 +1,6 @@ // 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. @@ -57,22 +57,21 @@ final class FirstThread extends Thread private String getMain (String name) { String mainName = null; - try { - - JarFile j = new JarFile (name); - - Attributes a = j.getManifest().getMainAttributes(); - - mainName = a.getValue(Attributes.Name.MAIN_CLASS); - - } catch (Exception e) { - // empty - } + try + { + JarFile j = new JarFile(name); + Attributes a = j.getManifest().getMainAttributes(); + mainName = a.getValue(Attributes.Name.MAIN_CLASS); + } + catch (Exception e) + { + // Ignore. + } if (mainName == null) { - System.err.println ("Failed to load Main-Class manifest attribute from\n" - + name); + System.err.println("Failed to load Main-Class manifest attribute from " + + name); System.exit(1); } return mainName; |