Openbravo Issue Tracking System - Tools
View Issue Details
0045266ToolsOtherspublic2020-10-21 11:032020-10-22 12:16
cberner 
cberner 
normalminorhave not tried
closedfixed 
5
0045266: Eclipse-warnings checker tool doesn't work with Java 15+ because of Nashorn removal
In Java 15, Nashorn JavaScript engine is removed, and eclipse-warnings tool contains some JavaScript code in its build.xml.

An alternative should be chosen, for example Java classes.
In description. (Export Java 15 and try to execute, it will fail because of nashorn)
Remove JavaScript, create Java classes and compile and use those to have the same result as previously with JavaScript.
No tags attached.
related to feature request 0043901 closed platform Openbravo ERP Support JDK15 
Issue History
2020-10-21 11:03cbernerNew Issue
2020-10-21 11:03cbernerAssigned To => cberner
2020-10-21 11:05cbernerRelationship addedrelated to 0043901
2020-10-21 11:14hgbotNote Added: 0123822
2020-10-21 15:29shuehnerIssue Monitored: shuehner
2020-10-22 12:16hgbotResolutionopen => fixed
2020-10-22 12:16hgbotStatusnew => closed
2020-10-22 12:16hgbotNote Added: 0123846
2020-10-22 12:16hgbotNote Added: 0123847

Notes
(0123822)
hgbot   
2020-10-21 11:14   
Merge Request created: https://gitlab.com/openbravo/tools/ci/eclipse-warnings/-/merge_requests/2 [^]
(0123846)
hgbot   
2020-10-22 12:16   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/tools/ci/eclipse-warnings [^]
Changeset: f81a6a5ff29b9fe4e3e31260ebf36a731c0db3b2
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 2020-10-22T10:16:47+00:00
URL: https://gitlab.com/openbravo/tools/ci/eclipse-warnings/-/commit/f81a6a5ff29b9fe4e3e31260ebf36a731c0db3b2 [^]

Fixes ISSUE-45266: Support Java 15+ by removing JavaScript usage in build.xml

Java 15 removes Nashorn JS engine, and because of this the build.xml
file that was using JavaScript for some tasks fails to execute. An
alternative is to use Java classes to have the same functionality. In
this commit this has been done, all JavaScript has been moved and
converted to Java code and compiled/executed where needed in build.xml.

---
A .gitignore
A ComplianceLevelProvider.java
A ConcatSources.java
M README.md
M build-eclipse.xml
---
(0123847)
hgbot   
2020-10-22 12:16   
Merge request merged: https://gitlab.com/openbravo/tools/ci/eclipse-warnings/-/merge_requests/2 [^]