ianlee-dev / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

FacebookRestClient contains a call to System.exit(1) #84

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
FacebookRestClient (and no client library code for that matter) should not 
call System.exit(1) on failure. This will shutdown an entire app server!

 static {
    try {
      JAXB_CONTEXT = JAXBContext.newInstance("com.facebook.api.schema");
      SERVER_URL = new URL(SERVER_ADDR);
      HTTPS_SERVER_URL = new URL(HTTPS_SERVER_ADDR);
    }
    catch (MalformedURLException e) {
      System.err.println("MalformedURLException: " + e.getMessage());
      System.exit(1);
    }
    catch (JAXBException e) {
        JAXB_CONTEXT = null;
        System.err.println("Could not get JAXB context:  " + e.getMessage
());
        e.printStackTrace();
    }
  }

Original issue reported on code.google.com by rtier...@gmail.com on 11 Aug 2008 at 12:14

GoogleCodeExporter commented 8 years ago
good catch.  it has been removed.

Original comment by fern...@gmail.com on 28 Aug 2008 at 10:25