Openbravo Issue Tracking System - Retail Modules  | 
| View Issue Details | 
  | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0051111 | Retail Modules | Web POS | public | 2022-12-12 18:33 | 2023-01-02 07:25 | 
  | 
| Reporter | shuehner |   | 
| Assigned To | Retail |   | 
| Priority | normal | Severity | minor | Reproducibility | have not tried | 
| Status | closed | Resolution | fixed |   | 
| Platform |  | OS | 5 | OS Version |  | 
| Product Version |  |   | 
| Target Version |  | Fixed in Version |  |   | 
| Merge Request Status | approved | 
| Review Assigned To |  | 
| OBNetwork customer | No | 
| Support ticket |  | 
| Regression level |  | 
| Regression date |  | 
| Regression introduced in release |  | 
| Regression introduced by commit |  | 
| Triggers an Emergency Pack | No | 
  | 
| Summary | 0051111: JDK20 java.net.URL constructors (JDK-8294241) - pos team | 
| Description | See 
https://jdk.java.net/20/release-notes [^] 
https://bugs.openjdk.org/browse/JDK-8294241 [^] 
java.net.URL constructors are deprecated (JDK-8294241) 
 
 
Java 20 deprecates some URL constructors and suggest to go via the URI classes (available since Java 1.4) and convert to URL from there: 
 
https://download.java.net/java/early_access/jdk20/docs/api/java.base/java/net/URL.html#constructor-deprecation [^] 
 
Example: 
-    final URL connUrl = new URL(completeUrl); 
+    final URL connUrl = new URI(completeUrl).toURL(); 
 
 | 
| Steps To Reproduce | Compile with jdk20 (ea build 23 or higher) 
 
in pos modules 
      1 org.openbravo.dqm.capency 
      6 org.openbravo.retail.avalaraconnector | 
| Proposed Solution | - | 
| Additional Information |  | 
| Tags | No tags attached. | 
| Relationships | | related to  | defect  | 0051108 |   | closed  | Triage Platform Base  | Openbravo ERP  | JDK20 java.net.URL constructors (JDK-8294241) - core  |  | blocks  | feature request  | 0051107 |   | new  | Triage Platform Base  | Openbravo ERP  | Support JDK20  |  
  | 
| Attached Files |  | 
  | 
| Issue History | 
| Date Modified | Username | Field | Change | 
| 2022-12-12 18:33 | shuehner | New Issue |  | 
| 2022-12-12 18:33 | shuehner | Assigned To |  => Triage Platform Base | 
| 2022-12-12 18:33 | shuehner | OBNetwork customer |  => No | 
| 2022-12-12 18:33 | shuehner | Modules |  => Core | 
| 2022-12-12 18:33 | shuehner | Triggers an Emergency Pack |  => No | 
| 2022-12-12 18:33 | shuehner | Issue generated from | 0051108 | 
| 2022-12-12 18:33 | shuehner | Relationship added | related to 0051108 | 
| 2022-12-12 18:34 | shuehner | Project | Openbravo ERP => Retail Modules | 
| 2022-12-12 18:34 | shuehner | Assigned To | Triage Platform Base => Retail | 
| 2022-12-12 18:34 | shuehner | Category | A. Platform => Web POS | 
| 2022-12-12 18:36 | shuehner | Summary | JDK20 java.net.URL constructors (JDK-8294241) - core => JDK20 java.net.URL constructors (JDK-8294241) - pos team | 
| 2022-12-12 18:37 | shuehner | Relationship added | blocks 0051107 | 
| 2022-12-12 18:38 | shuehner | Note Added: 0144554 |  | 
| 2022-12-22 20:14 | hgbot | Merge Request Status |  => open | 
| 2022-12-22 20:14 | hgbot | Note Added: 0144947 |  | 
| 2022-12-22 20:15 | hgbot | Note Added: 0144948 |  | 
| 2023-01-02 07:25 | hgbot | Merge Request Status | open => approved | 
| 2023-01-02 07:25 | hgbot | Resolution | open => fixed | 
| 2023-01-02 07:25 | hgbot | Status | new => closed | 
| 2023-01-02 07:25 | hgbot | Note Added: 0145110 |  | 
| 2023-01-02 07:25 | hgbot | Note Added: 0145111 |  | 
| 2023-01-02 07:25 | hgbot | Note Added: 0145112 |  | 
| 2023-01-02 07:25 | hgbot | Note Added: 0145113 |  | 
| 2023-01-02 07:25 | hgbot | Note Added: 0145114 |  | 
	| 
		Notes	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
		
			
				[java] 3. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.dqm.capency/src/org/openbravo/dqm/capency/CapencyConnector.java (at line 209) 
     [java] 	return new URL(url.toString()); 
     [java] 	           ^^^^^^^^^^^^^^^^^^^ 
     [java] The constructor URL(String) is deprecated since version 20 
 
     [java] 5. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.retail.avalaraconnector/src/org/openbravo/retail/avalaraconnector/api/AvalaraAPI.java (at line 52) 
     [java] 	URL url = new URL(conf.getUrl() + PING_ENDPOINT); 
     [java] 	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
     [java] The constructor URL(String) is deprecated since version 20 
     [java] ---------- 
     [java] 6. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.retail.avalaraconnector/src/org/openbravo/retail/avalaraconnector/api/AvalaraAPI.java (at line 60) 
     [java] 	URL url = new URL(conf.getUrl() + TAXCODES_ENDPOINT); 
     [java] 	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
     [java] The constructor URL(String) is deprecated since version 20 
     [java] ---------- 
     [java] 7. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.retail.avalaraconnector/src/org/openbravo/retail/avalaraconnector/api/AvalaraAPI.java (at line 68) 
     [java] 	URL url = new URL(conf.getUrl() + ADDRESS_ENDPOINT); 
     [java] 	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
     [java] The constructor URL(String) is deprecated since version 20 
     [java] ---------- 
     [java] 8. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.retail.avalaraconnector/src/org/openbravo/retail/avalaraconnector/api/AvalaraAPI.java (at line 75) 
     [java] 	URL url = new URL(conf.getUrl() + TAX_ENDPOINT); 
     [java] 	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
     [java] The constructor URL(String) is deprecated since version 20 
     [java] ---------- 
     [java] 9. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.retail.avalaraconnector/src/org/openbravo/retail/avalaraconnector/api/AvalaraAPI.java (at line 83) 
     [java] 	URL url = new URL(conf.getUrl() + COMPANIES_ENDPOINT + conf.getCompanyCode() 
     [java]         + TRANSACTIONS_ENDPOINT + transactionCode + REFUND_ENDPOINT); 
     [java] 	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
     [java] The constructor URL(String) is deprecated since version 20 
     [java] ---------- 
     [java] 10. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.retail.avalaraconnector/src/org/openbravo/retail/avalaraconnector/api/AvalaraAPI.java (at line 92) 
     [java] 	URL url = new URL(conf.getUrl() + TAX_ENDPOINT); 
     [java] 	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
     [java] The constructor URL(String) is deprecated since version 20			 | 
		 
		 
	 | 
	
		 
	 | 
	
		
		
			| 
				(0144947)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2022-12-22 20:14   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0144948)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2022-12-22 20:15   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0145110)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2023-01-02 07:25   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0145111)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2023-01-02 07:25   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0145112)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2023-01-02 07:25   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0145113)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2023-01-02 07:25   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0145114)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2023-01-02 07:25   
							 | 
		 
		 
	 | 
	
		
	 |