Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4661659

Htmlconverter needs option to NOT call System.exit when launched programatically

XMLWordPrintable

    • hopper
    • x86
    • windows_2000



      Name: gm110360 Date: 04/02/2002


      FULL PRODUCT VERSION :
      java version "1.3.1_02"
      java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
      java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)

      FULL OPERATING SYSTEM VERSION : windows 2000 sp 2


      A DESCRIPTION OF THE PROBLEM :
      The HtmlConverter tool should have a programmatic interface
      to allow it to be launched from another java program
      (application and applet). Currently, if I invoke
      HtmlConverter.main(new String[] {<cmd line args>}) or
      HTMLConverter.main(new String[]{"-gui"}), it quits the
      entire application (probably using System.exit) --- it
      would be very useful to allow our custom app to use the
      tool in silent mode and not invoke System.exit.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. In any java application or java applet, add a button to
      invoke the converter using: HTMLConverter.main(null);
      2. This will print a message to stdout ("No files to be
      processed"), which is correct, and then will kill the
      entire application when the call returns.
      3.

      EXPECTED VERSUS ACTUAL BEHAVIOR :

      I'd expect it to perform the requested conversion (and
      print errors, etc.), but not kill my entire application.

      This bug can be reproduced always.
      (Review ID: 144780)
      ======================================================================

            duke J. Duke
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: