Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0039372
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2018-09-28 09:482018-10-11 10:52
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version3.0PR18Q4
StatusclosedFix in branchFixed in SCM revisiona55bab8b0e2f
ProjectionnoneETAnoneTarget Version3.0PR18Q4
OSAnyDatabaseAnyJava version9+
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0039372: Illegal Access warning in ant tasks

DescriptionWhen executing some ant tasks with a JDK >=9 an Illegal Access warning is seen.
Steps To ReproduceThe following flows are affected:
- install.source
- smartbuild
- update.database

Note there might be others that are also affected, but as they are not that common, and technically require a different and more complex solution (they are not executed in a different forked jvm where it's easy to set params), they will not fix within patch for this issue.
Proposed SolutionUntil a proper fix is done by updating dependencies making those illegal accesses, open up the required modules with --add-open jvm argument in those tasks making use of it.

Note. Include the argument in an ant property (jvm.arg.line) so that:
  * By default, if JDK is 9+ required modules are opened
  * It is possible to overwrite that property in command line to, for example see all occurrences of this problem. Ie.:
ant generate.entities.quick -Djvm.arg.line='--illegal-access=debug'
would display a warning including stack trace on each occurrence.

---
[1] https://docs.oracle.com/javase/9/tools/java.htm#JSWOR624 [^]
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0040649 closedalostale no need to open modules for reflection in build tasks 
blocks design defect 0039031 newTriage Platform Base Tracking issue: Remove illegal access warnings shown since java9 by updating affected jar libraries 

-  Notes
(0107065)
hgbot (developer)
2018-09-28 11:33

Repository: erp/devel/pi
Changeset: a55bab8b0e2fa7a738e1b03b4becbb67dedd2f66
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Sep 28 11:29:31 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a55bab8b0e2fa7a738e1b03b4becbb67dedd2f66 [^]

fixed issue 39372: Illegal Access warning in ant tasks

  Fixed for most common build flows.

  Note --add-opens jvm argument can only be set in JDK >= 9, as miniumum supported
  is 8, it's enough checking it.

---
M build.xml
M src/build.xml
---
(0107086)
hudsonbot (developer)
2018-10-01 11:36

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c83c34c74ee4 [^]
Maturity status: Test
(0107247)
caristu (developer)
2018-10-11 10:52

Code reviewed + tested OK.

- Issue History
Date Modified Username Field Change
2018-09-28 09:48 alostale New Issue
2018-09-28 09:48 alostale Assigned To => platform
2018-09-28 09:48 alostale Modules => Core
2018-09-28 09:48 alostale Triggers an Emergency Pack => No
2018-09-28 10:28 alostale Steps to Reproduce Updated View Revisions
2018-09-28 10:28 alostale Relationship added blocks 0039031
2018-09-28 11:23 alostale Assigned To platform => alostale
2018-09-28 11:27 alostale Review Assigned To => caristu
2018-09-28 11:27 alostale Steps to Reproduce Updated View Revisions
2018-09-28 11:27 alostale Target Version => 3.0PR18Q4
2018-09-28 11:33 hgbot Checkin
2018-09-28 11:33 hgbot Note Added: 0107065
2018-09-28 11:33 hgbot Status new => resolved
2018-09-28 11:33 hgbot Resolution open => fixed
2018-09-28 11:33 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a55bab8b0e2fa7a738e1b03b4becbb67dedd2f66 [^]
2018-10-01 11:36 hudsonbot Checkin
2018-10-01 11:36 hudsonbot Note Added: 0107086
2018-10-11 10:52 caristu Note Added: 0107247
2018-10-11 10:52 caristu Status resolved => closed
2018-10-11 10:52 caristu Fixed in Version => 3.0PR19Q1
2018-10-11 10:52 caristu Fixed in Version 3.0PR19Q1 => 3.0PR18Q4
2019-04-19 08:35 alostale Relationship added related to 0040649


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker