Community
Participate
Working Groups
- Create two Java 9 projects P1 and P2. - In P1, add project dependency to P2 in Modulepath node. - Expand P2, double-click on "Is modular" to open Module properties. => All sections are empty, but there is no error on the dialog. - Click on Details tab. We see an error that "Error exists on Contents tab". - Switch to Contents tab. We can see the error "Must include at least one module" now.
IIRC I intentionally suppress the initial error, to follow the UI guideline that dialogs should never open with an error. If the error is justified, which behavior would you expect? Maybe we have to disable opening the dialog in some situations? Or, is the actual bug that P2 should be considered as an automatic module and thus its module name should be shown in the "Included ... " section?
This exact scenario is fixed via bug 525213, viz. we now understand P2 as an automatic module, and hence no error is raised. This is specific to project dependencies. When adding a non-modular jar, we only understand the automatic module after "Apply". In that case the new validation rules from bug 522286 comment 55 help: no modules in Contents is no longer an error (the existing error is only raised if modules are known but none is "included"). *** This bug has been marked as a duplicate of bug 525213 ***