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

WebSocket.request(long n) should not accept 0

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: