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

programatic additions to MailcapCommandMap don't seem to become the default

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.0fcs
    • alpha
    • other-libs
    • None
    • 1.0fcs
    • sparc
    • solaris_2.5.1
    • Verified

        I'm creating a MailcapCommandMap from a file on disk, and then calling
        addMailcap() explicitely to override one entry The documentation says
        this entry should become the "default" command for the mime-type.

        But when I call getCommand() on CommandMap (after calling setDefaultCommandMap)
        or even on the same MailcapCommandMap instance I get the command specified in
        the file on disk. I expected my programatic entry.

              duke J. Duke
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: