1. 17 Jun, 2016 1 commit
    • Andy Wilkinson's avatar
      Prevent JVM from exiting with 1 when main thread is only non-daemon · 13635201
      Andy Wilkinson authored
      DevTools deliberately throws an uncaught exception on the main thread
      as a safe way of causing it to stop processing. This exception is
      caught and swallowed by an uncaught exception handler. Unfortunately,
      this has the unwanted side-effect of causing the JVM to exit with 1
      once all running threads are daemons.
      
      Normally, this isn't a problem. Non-daemon threads, such as those
      started by an embedded servlet container, will keep the JVM alive and
      restarts of the application context will occur when the user makes to
      their application. However, if the user adds DevTools to an
      application that doesn't start any non-daemon threads, i.e. it starts,
      runs, and then exits, it will exit with 1. This causes both
      bootRun in Gradle and spring-boot:run in Maven to report that the
      build has failed. While there's no benefit to using DevTools with an
      application that behaves in this way, the side-effect of causing the
      JVM to exit with 1 is unwanted.
      
      This commit address the problem by updating the uncaught exception
      handler to call System.exit(0) if the JVM is going to exit as a
      result of the uncaught exception causing the main thread to die. In
      other words, if the main thread was the only non-daemon thread, its
      death as a result of the uncaught exception will now cause the JVM
      to exit with 1 rather than 0. If there are other non-daemon threads
      that will keep the JVM alive, the behaviour is unchanged.
      
      Closes gh-5968
      13635201
  2. 16 Jun, 2016 2 commits
  3. 15 Jun, 2016 4 commits
  4. 14 Jun, 2016 2 commits
  5. 11 Jun, 2016 4 commits
  6. 10 Jun, 2016 3 commits
    • Phillip Webb's avatar
      Allow loading from package names without dots · a9b98cad
      Phillip Webb authored
      Update BeanDefinitionLoader to support loading from package names that
      do not contain dots.
      
      Prior to this commit `new BeanDefinitionLoader(registry, "somepackage")`
      would fail because "somepackage" exists and is a resource but does not
      contain valid XML. Somewhat surprisingly the InputStream returned by
      the resource actually contains the listing of files in the package.
      
      Fixes gh-6126
      a9b98cad
    • Ivan Sopov's avatar
      Fix potential offset errors in BasicJsonParser · 15287641
      Ivan Sopov authored
      Update BasicJsonParser to fix potential exceptions if strings happen
      to be empty.
      
      Fixes gh-6136
      15287641
    • Phillip Webb's avatar
      Polish · ed6f11d6
      Phillip Webb authored
      ed6f11d6
  7. 09 Jun, 2016 2 commits
  8. 03 Jun, 2016 1 commit
  9. 01 Jun, 2016 12 commits
  10. 26 May, 2016 1 commit
  11. 25 May, 2016 2 commits
  12. 24 May, 2016 1 commit
    • Andy Wilkinson's avatar
      Skips Cassandra and Elasticsearch tests on Windows · 275651e8
      Andy Wilkinson authored
      Neither Cassandra nor Elasticsearch starts reliably on Windows. This
      commit adds a custom class rule to the associated sample application
      tests to skip them on Windows. A class rule is used rather than a
      Unit assumption as we want to avoid starting Elasticsearch (done by
      the application context) and Cassandra (done by a test execution
      listener) and an assumption would be too late.
      275651e8
  13. 13 May, 2016 5 commits