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

WebSocket.request(long n) should not accept 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 9
    • core-libs
    • generic
    • generic

      0 looks to be a meaningless value for n, but it is allowed now. If no message is planned to request, why invoke this method.

      It looks reasonable to throw IllegalArgumentException for 0

            prappo Pavel Rappo
            xiaofeya Xiaofeng Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: