sdedic commented on a change in pull request #978: [NETBEANS-1481] Fix handling 
of eager module fragments (regression netbeans 9.0)
URL: https://github.com/apache/incubator-netbeans/pull/978#discussion_r227076124
 
 

 ##########
 File path: platform/o.n.bootstrap/src/org/netbeans/ModuleManager.java
 ##########
 @@ -1681,7 +1681,9 @@ public boolean hasToEnableCompatModules(Set<Module> 
modules) throws IllegalArgum
     
     private void maybeAddToEnableList(Set<Module> willEnable, Set<Module> 
mightEnable, Module m, boolean okToFail) {
         if (! missingDependencies(m).isEmpty()) {
-            assert okToFail : "Module " + m + " had unexpected problems: " + 
missingDependencies(m) + " (willEnable: " + willEnable + " mightEnable: " + 
mightEnable + ")";
+            if (!okToFail) {
 
 Review comment:
   This seems to change the behaviour also for non-fragment modules (`assert` 
-> `log`). Was that intended ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to