Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] A. Platformmajorhave not tried2020-07-31 13:542020-07-31 14:30
ReportershuehnerView Statuspublic 
Assigned Toplatform 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0044733: Tracking issue: Find and fix all jar libaries with split packages between classpath and system image (Forbidden since Java9)

DescriptionSince Java>9 the following scenarios are no longer allowed:
a.) 'split package' between two different 'java modules'
b.) 'split package' between java system image and normal classpath

While the first topic only applies when using java module system the 2nd case applies even without it.

split package example:
- java system image (jdk itself) ships classes in some package
- a jar library ship classes in the same java package also

That is now forbidden.

Current status:
a.) Normal javac java compiler does not prohibit this yet
b.) javac bug is reported and acknowledged to implement this stricter rules [^]
When this change is implemented probably compilation will be broken in this scenario

c.) Using Eclipse IDE with compiler=11 will fail to compile if
- split package exists
- Compilation needs to read a .class related related to it

d.) ecj.jar eclipse commands line compiler used in Openbravo 'eclipse-warnings' CI check
Fails in the same way then c.) (with compiler set to 11)

Related upstream discussions:
1.) javac issue [^]
2.) eclipse bug with lots of discussion [^]

Steps To ReproduceIssue 44625 has a reproducible example
Proposed SolutionFind any jar library causing split-package and fix it.
Fix could be:
- Remove usage of the whole library if possible
- Remove the split-package situation by either
  - Getting upstream to fix it
  - Patching the library locally (only if unavoidable)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on defect 0044625 newplatform Openbravo ERP Remove or fix xercesImpl.jar library to support eclipse java 11 
depends on defect 0044626 newplatform Modules Remove or fix jaxen-1.1.1.jar and xmlbeans-2.3.0 libraries to support Eclipse Java 11 
depends on defect 0044734 closedshuehner Openbravo ERP Remove jar library: lib/stax-api-1.0.1.jar as not required and causes split package with java system image 
depends on defect 0044735 closedshuehner Retail Modules Jar library mobile-test/lib/google/transaction-api-1.1.jar causes split package with java system image 
depends on defect 0044736 closedshuehner Openbravo ERP org.openbravo.xmlpo contains 2 jar libraries causing split-package with java system image 
depends on defect 0044754 newcaristu Modules 2 jar libraries related to batik cause split package problem (batik-ext-1.7.jar, xml-apis-1.3.04.jar) 
blocks feature request 0044624 newplatform Openbravo ERP Remove Java 8 JDK Support and raise stack to Java 11 
Not all the children of this issue are yet resolved or closed.

-  Notes
shuehner (administrator)
2020-07-31 13:59

There is an utility script in this repo checking jar libraries and raising the split package situations: [^]

- Issue History
Date Modified Username Field Change
2020-07-31 13:54 shuehner New Issue
2020-07-31 13:54 shuehner Assigned To => platform
2020-07-31 13:54 shuehner Modules => Core
2020-07-31 13:54 shuehner Triggers an Emergency Pack => No
2020-07-31 13:54 shuehner Relationship added depends on 0044625
2020-07-31 13:54 shuehner Relationship added blocks 0044626
2020-07-31 13:59 shuehner Note Added: 0121741
2020-07-31 14:01 shuehner Relationship added depends on 0044734
2020-07-31 14:03 shuehner Relationship added blocks 0044624
2020-07-31 14:18 shuehner Relationship added depends on 0044735
2020-07-31 14:25 shuehner Relationship added depends on 0044736
2020-07-31 14:30 shuehner Relationship replaced depends on 0044626
2020-08-05 10:59 shuehner Relationship added depends on 0044754

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker