JDI: create*WatchpointRequest not speced to throw UnsupportedOperationException

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: