Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1639

Inconsistent behaviour with java.net.http.HttpClient in Netbeans10-vc2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 10.0
    • None
    • cnd - Editor
    • None

    Description

      Netbeans initially failed to autocomplete any of the new java.net.http.HttpClient classes when trying to import them. I had to manually type the import in full before it started working, however then I was then not able to ctrl-click on the class names to see the source code of HttpClient etc, other classes i could, like Duration

      final var client = HttpClient.newBuilder()
      .version(HttpClient.Version.HTTP_1_1)
      .followRedirects(HttpClient.Redirect.NORMAL)
      .connectTimeout(Duration.ofSeconds(20))
      .build();

       

       

      it builds and runs fine.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rampantbadger Dell Green
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: