Giter Site home page Giter Site logo

Comments (6)

msteiger avatar msteiger commented on July 18, 2024 1

Yes, sounds good. Need to brush up my knowledge about new Java features first a bit. Will review asap.

from jxmapviewer2.

msteiger avatar msteiger commented on July 18, 2024 1

Makes sense, thanks for your patience!

from jxmapviewer2.

msteiger avatar msteiger commented on July 18, 2024

From what I understood now, this should be automatically created when importing the jar in a Java9+ project. Maybe we should instead aim for a explicit module definition through a module-info.java file. What do you think?

from jxmapviewer2.

bjorndarri avatar bjorndarri commented on July 18, 2024

I'm all for proper modularization, but the problem is with Java 8 compatibility, which will be broken if you upgrade to Java 9 and add a module-info.java file, although there are ways to mitigate that with multi-release-jar files, but I haven't experimented with that personally.

This way of adding 'Automatic-Module-Name' to the manifest is the simplest way to allow usage in both Java 8 and modularized Java >=9 applications.

I'm using jxmapviewer2 in an application that has both Java 8 and Java 11 versions, so this solution still gets my vote :).

from jxmapviewer2.

msteiger avatar msteiger commented on July 18, 2024

Okay, sounds reasonable. Thanks. Isn't the Automatic-Module-Name generated by default if you include a jar file without that attribute? Will experiment a bit with it asap and merge your PR then.

from jxmapviewer2.

bjorndarri avatar bjorndarri commented on July 18, 2024

Without the manifest attribute a module name is derived from the jar file name, which is basically an unstable fallback mechanism and quite inconvenient to work with.

See for example: Automatic-Module-Name: Calling all Java Library Maintainers
and Explicitly Naming Automatic Java Modules.

from jxmapviewer2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.