assets/src/org/ruboto/JRubyAdapter.java in ruboto-0.10.0 vs assets/src/org/ruboto/JRubyAdapter.java in ruboto-0.10.1
- old
+ new
@@ -260,10 +260,15 @@
// Used to enable JRuby to generate proxy classes
System.setProperty("jruby.ji.proxyClassFactory", "org.ruboto.DalvikProxyClassFactory");
System.setProperty("jruby.class.cache.path", appContext.getDir("dex", 0).getAbsolutePath());
+ // Workaround for bug in Android 2.2
+ // http://code.google.com/p/android/issues/detail?id=9431
+ // System.setProperty("java.net.preferIPv4Stack", "true");
+ // System.setProperty("java.net.preferIPv6Addresses", "false");
+
ClassLoader classLoader;
Class<?> scriptingContainerClass;
String apkName = null;
try {
@@ -437,17 +442,18 @@
return ((String)get("RUBY_VERSION")).startsWith("1.9.");
}
static void printStackTrace(Throwable t) {
// TODO(uwe): Simplify this when Issue #144 is resolved
- try {
- t.printStackTrace(output);
- } catch (NullPointerException npe) {
+ // TODO(scott): printStackTrace is causing too many problems
+ //try {
+ // t.printStackTrace(output);
+ //} catch (NullPointerException npe) {
// TODO(uwe): printStackTrace should not fail
for (java.lang.StackTraceElement ste : t.getStackTrace()) {
output.append(ste.toString() + "\n");
}
- }
+ //}
}
private static String scriptsDirName(Context context) {
File storageDir = null;
if (isDebugBuild()) {