Hi All,

Please review the following test only fix for jdk15.


Bug: 

https://bugs.openjdk.java.net/browse/JDK-8235744

 

webrev:

http://cr.openjdk.java.net/~pbansal/8235744/webrev00/

 

Issue:

The test test/jdk/javax/swing/text/html/TestJLabelWithHTMLText.java on 
linux-64. 

The test was added under https://bugs.openjdk.java.net/browse/JDK-8230235. The 
test has a JLabel and a html text with empty image tag. The client property 
"DocumentBaseKey" is set on the JLabel with value "https://www.google.com/";. If 
the test is run on a linux machine on a network which requires proxy settings 
to access internet, the test is timed out if no proxy is set for java. The test 
just keeps trying to access the url set in "DocumentBaseKey" and as it is set 
to "https://www.google.com/";, it requires a proxy. I think the test passes on 
mach5 system as no system proxy is required there to access internet there.

 

Fix:

The fix is to change the "DocumentBaseKey" value to a URL where proxy is not 
required even if the network needs a proxy to access internet. This can be 
localhost, some local directory url etc. In the fix, localhost is used. I have 
verified that after making this change, the test passes with the fix done in  
https://bugs.openjdk.java.net/browse/JDK-8230235 and fails without the fix.

 

 

Testing:

I have run this on local machines on network which required proxy to access 
internet. I have also ran a mach5 job and it is working fine.


Regards,
Pankaj Bansal

 

Reply via email to