Draft
Conversation
Create full Ecore model project for Java module system (module-info.java concepts): - Module, Requires (transitive/static), Exports, Opens, Provides, Uses EClasses - Ecore model (.ecore) and genmodel (.genmodel) files - Java interfaces (JavaModulePackage, JavaModuleFactory, model classes) - Impl classes using dynamic EMF feature delegation - Util classes (Switch, AdapterFactory) - Parent and model Maven POMs with EMF Ecore dependency Notes: - Compiled with Java 17 (environment constraint); <release> set to 17 - module-info.java omitted: ncore dependency (2025.12.0) requires Java 21 bytecode - JavaModuleEPackageResourceSetCapabilityFactory omitted for same reason Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Merge both additionalOptions into a single element to prevent the second declaration from silently overriding the first. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Create Ecore model for Java module concepts
Add Ecore model of Java module system concepts
Mar 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Models the Java 9+ module system (
module-info.java) as an EMF Ecore model, enabling programmatic representation and manipulation of module declarations.Ecore Model (
model/model/java-module.ecore)Six EClasses covering all module directives:
Modulemodule M { ... }name, containment refs to all directivesRequiresrequires [transitive] [static] Mname,transitive,staticExportsexports pkg [to M1, M2]name,modules[]Opensopens pkg [to M1, M2]name,modules[]Providesprovides S with I1, I2service,implementations[]Usesuses SserviceGenerated EMF Java Code (
model/src/main/java/)JavaModulePackage— package singleton with class/feature IDs andLiteralsinner interfaceJavaModuleFactory— factory interface and implementationimpl/implementations usingeDynamicGet/eDynamicSetwith dynamic feature delegationutil/JavaModuleSwitch,util/JavaModuleAdapterFactory— standard EMF visitor/adapter infrastructureProject Structure
Standard Nasdanika multi-module Maven layout matching sibling models (e.g.,
bank):pom.xml(parent) +model/pom.xmlmodel/model/java-module.genmodelmodel/META-INF/MANIFEST.MF(OSGi bundle descriptor)Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/Nasdanika-Models/java-module/git/trees/c473643/usr/bin/curl curl -s REDACTED(http block)https://api.github.com/repos/Nasdanika-Models/ncore/git/trees/48a05b2ea9ea59458055493be18b85065d51e962/usr/bin/curl curl -s REDACTED(http block)https://api.github.com/search/code/usr/bin/curl curl -s REDACTED(http block)/usr/bin/python3 python3 /tmp/search_ecore.py(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.