Ignoring exceptions is naughty.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2717 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -909,8 +909,8 @@ public class Table<T>
|
|||||||
serializableClass = Serializable.class;
|
serializableClass = Serializable.class;
|
||||||
Class<?> c = Class.forName("java.lang.reflect.AccessibleObject");
|
Class<?> c = Class.forName("java.lang.reflect.AccessibleObject");
|
||||||
setBypass = c.getMethod("setAccessible", new Class<?>[] { Boolean.TYPE });
|
setBypass = c.getMethod("setAccessible", new Class<?>[] { Boolean.TYPE });
|
||||||
} catch(Exception ex) {
|
} catch (Exception ex) {
|
||||||
// nothing to do
|
System.err.println("Unable to reflect AccessibleObject.setAccessible: " + ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ public class OneLineLogFormatter extends Formatter
|
|||||||
pw.close();
|
pw.close();
|
||||||
buf.append(sw.toString());
|
buf.append(sw.toString());
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
buf.append("Format failure:").append(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user