Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-2006

[drlvm + classlib] Wrong exit code in case of uncaught exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • DRLVM
    • None
    • All
    • Patch Available

    Description

      Tony Wu <wuyuehao@gmail.com> to harmony-dev
      More options 10:03 am (9 hours ago)

      Consider this class,
      public class TestExeReturn {
      public static void main(String[] args) throws Exception

      { throw new Exception(); }

      }

      when we run "java TestExeReturn" and "echo %errorlevel%", we got 1 of
      RI, -1 of DRLVM and 0 for IBMVM.

      a testcase of apache ant failed for this issue.


      Tony Wu
      China Software Development Lab, IBM

      I've fixed the above problem in DRLVM. That also require fixing classlib's code. Namely, I have slightly modified the launcher. Two separate patches were created. One for DRLVM another for classlib. Tests passed on Win2003, SUSE9 with both patches applied.

      Thanks
      Evgueni

      Attachments

        1. vm_exit_code3.patch
          80 kB
          Evgueni Brevnov
        2. vm_exit_code2.patch
          80 kB
          Evgueni Brevnov
        3. vm_exit_code.patch
          7 kB
          Evgueni Brevnov
        4. classlib_exit_code2.patch
          0.5 kB
          Evgueni Brevnov
        5. classlib_exit_code.patch
          1 kB
          Evgueni Brevnov
        6. classlib_exit_code.patch
          1 kB
          Evgueni Brevnov

        Issue Links

          Activity

            People

              gshimansky Gregory Shimansky
              evgueni.brevnov Evgueni Brevnov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: