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

JDI: create*WatchpointRequest not speced to throw UnsupportedOperationException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • core-svc
    • None
    • beta
    • generic
    • generic
    • Not verified

      EventRequestManager.createModificationWatchpointRequest()
      EventRequestManager.createAccessWatchpointRequest()

      are not supported by some virtual machines. The queries:

      VirtualMachine.canWatchFieldModification()
      VirtualMachine.canWatchFieldAccess()

      are used to determine if this feature is supported.

      In all other places in the JDI API when an unsupported operation
      is attempted, java.lang.UnsupportedOperationException is thrown.

      The documentation for watchpoint creation must discuss that they
      may not be implemented and the exception must be documented and
      thrown.

      robert.field@Eng 2000-04-11

            rfield Robert Field (Inactive)
            rfield Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: