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

AppletViewer: incorrectly formatted msg for property overwrite

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.3.1
    • tools



      Name: gm110360 Date: 12/13/2001


      java version "1.3.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
      OJVM Client VM (build 5.0.487 cdov, Copyright (c) 1998-2001 Oracle Corp.,
      nojit)

      When passing in a value for the http.proxyHost system property on the command
      line when invoking AppletViewer (using -Dhttp.proxyHost=myproxy.com, for
      example), AppletViewer causes the following message to be printed out:
      Warning: Temporarily overwriting system property at users request: key: {0} old
      value: {1} new value: {2}

      It appears that AppletViewer is passing in a bad string into MessageFormat. In
      particular, the key "appletviewer.main.warn.prop.overwrite" in
      sun.applet.resource.MsgAppletViewer appears to contain a single instance of the
      single-quote character instead of a properly escaped double instance (user's
      should be user''s).

      The result is a message that is confusing, instead of one that tells the user
      exactly what property is being overwritten, and with what value.
      (Review ID: 136308)
      ======================================================================

            ehawkessunw Eric Hawkes (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: