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

the validate pass (caused by reshaped windows) doesn't occur on dispatch thread

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1
    • CPU:
      generic
    • OS:
      solaris_2.5
    • Verification:
      Not verified

      Description

      The new event model now causes all events to be posted to
      the event queue where a separate thread takes them off hte queue and
      dispatches them to client code.

      In order to prevent frequent deadlock, it is essential that all
      callbacks into client code (as a result of events) execute on this
      one dispatch thread.

      Currently, though, there is one area where this is not happneing
      properly: when a Window is reshaped (either programmatically or by
      the user). This reshape will generate a low-level reshape event in
      the native code which results in a call up into client-code to
      "validate" (relayout the contents of the newly sized window). This
      is very dangerous and must be changed so that this reshape event
      generates the proper ComponentEvent.RESIZED event which is placed on the
      event queue, where validate will be called properly from the dispatch
      thread.

        Attachments

          Activity

            People

            Assignee:
            amfowler Anne Fowler (Inactive)
            Reporter:
            amfowler Anne Fowler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: