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

EventHandler should not cache Method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • client-libs
    • None
    • b20
    • x86
    • linux_redhat_9.0

      EventHandler currently caches the Method of the target. This is problematic for the following reasons:

      EventHandlers are typically attached to ui components that notify the listener based on a user gesture. Because they're driven from user interaction EventHandler's are sporadically notified. As such, caching the Method adds unneeded overhead to applications.

      If we cache the method, and we get the wrong method there can be problems if we can later find the right method. This would likely only happen with method overloading, and an exception will be thrown, but it's still possible.

      ###@###.### 2004-12-17 22:52:38 GMT

            svioletsunw Scott Violet (Inactive)
            svioletsunw Scott Violet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: