Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[] about_files and JPMS

Greetings AC Members,

Please find an interesting issue below. It looks like out beloved "about_files" folder in jar files is causing issues in Java modules.

As a workaround, there is a recommendation to rename it from "about_files" to "about-files". For a final solution, I wonder if we can get rid of this requirement for jar files altogether. Most other projects I work with include a license file in their final product/distribution but not in every single jar file.



Gunnar Wagenknecht

Begin forwarded message:

Subject: [Bug 550376] [JUnit 5] Cannot run Jupiter tests in a project with after upgrade to JUnit 5.5.1
Date: August 27, 2019 at 21:14:54 GMT+2
Product/Component: JDT / UI

--- Comment #24 from Stephan Herrmann <stephan.herrmann@xxxxxxxxx> ---
We have something like a recommendation from Alan Bateman in [1]

Forging the list of packages to exclude a given folder doesn't seem to be
supported without hacking the jar tool, but:

"The top-level directory or a location such as META-INF/legal will work of

So, we have some kind of blessing also for "about-files". It solves the
problem, because this folder is not seen as a package, hence JPMS has nothing
to check and hence the boot layer has no reason to blow up.

Conversely, by saying "about_files/EPL.html" we create an "encapsulated"
package "about_files", where "encapsulated" doesn't live up to its promise in a
single-classloader runtime, which will and does blow up.


You are receiving this mail because:
You are on the CC list for the bug.

Back to the top