mbien commented on PR #8682:
URL: https://github.com/apache/netbeans/pull/8682#issuecomment-3127379526

   here the reproducer replicating the calls outside of NB for anyone interested
   
   ```java
           DiscoClient client = new DiscoClient();
           
           Distribution distribution = client.getDistributions()
                   .stream()
                   .filter(d -> d.getName().equalsIgnoreCase("zulu"))
                   .findFirst()
                   .get();
           
           System.out.println("dist: "+distribution);
           
           List<Pkg> pkgs = client.getPkgs(
                   List.of(distribution),
                   VersionNumber.fromText("21"),
                   Latest.NONE,
                   OperatingSystem.LINUX,
                   LibCType.NONE,
                   Architecture.NONE,
                   Bitness.NONE,
                   ArchiveType.NONE,
                   PackageType.JDK,
                   Boolean.FALSE,
                   Boolean.TRUE,
                   List.of(ReleaseStatus.GA, ReleaseStatus.EA),
                   TermOfSupport.LTS,
                   List.of(Scope.PUBLIC),
                   null
           );
           
           for (Pkg pkg : pkgs) {
               System.out.println("pkg: "+pkg);
               
               // on 21.0.1 and 2.0.39: Exception in thread "main" 
java.lang.NullPointerException: Cannot invoke 
"com.google.gson.JsonArray.size()" because "jsonArray" is null
               // on 2.0.24: Exception in thread "main" 
java.lang.IllegalArgumentException: ephemeralId or javaVersion cannot be null
               System.out.println("info: 
"+client.getPkgInfoByEphemeralId(pkg.getEphemeralId(), pkg.getJavaVersion()));
           }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to