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

java.util.jar.Attributes.put(Object,Object) does not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: tools
    • Subcomponent:
      jar
    • CPU:
      x86
    • OS:
      windows_nt

      Description



      Name: krT82822 Date: 03/26/99


      Map map = new Attributes();
      map.put(TextAttribute.FAMILY,"Courier New");
      This now throws an Exception

      This used to work in 1.2. Is this a bug or did map.put()
      change?

      java.lang.ClassCastException

      at java.util.jar.Attributes.put(Attributes.java, Compiled Code)

      at dsi.param.PrintParameters.getPrintFont(PrintParameters.java:153)

      at dsi.text.TextPrinter.<init>(TextPrinter.java:46)

      at CriteriaPanel.performPrint(CriteriaPanel.java:300)

      at CriteriaPanel$3.actionPerformed(CriteriaPanel.java:173)

      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1066)

      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1101)

      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)

      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)

      at javax.swing.AbstractButton.doClick(AbstractButton.java:226)

      at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:754)

      at java.awt.Component.processMouseEvent(Component.java:3146)

      at java.awt.Component.processEvent(Component.java, Compiled Code)

      at java.awt.Container.processEvent(Container.java, Compiled Code)

      at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)

      at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)

      at java.awt.Component.dispatchEvent(Component.java, Compiled Code)

      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java, Compiled Code)

      at java.awt.LightweightDispatcher.processMouseEvent(Container.java, Compiled Code)

      at java.awt.LightweightDispatcher.dispatchEvent(Container.java, Compiled Code)

      at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)

      at java.awt.Window.dispatchEventImpl(Window.java, Compiled Code)

      at java.awt.Component.dispatchEvent(Component.java, Compiled Code)

      at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)

      at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code)

      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:87)

      at java.awt.EventDispatchThread.run(EventDispatchThread.java:78)
      (Review ID: 56159)
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            zlisunw Zhenghua Li (Inactive)
            Reporter:
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: