This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 52796

Summary: ModuleAutoDeps unable to upgrade stabilized/0 -> stabilized/1
Product: platform Reporter: Jesse Glick <jglick>
Component: Module SystemAssignee: Jesse Glick <jglick>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 51468    

Description Jesse Glick 2004-12-23 19:47:38 UTC
The current ModuleAutoDeps code requires that
'older' trigger deps be used with a spec version.
However in case you simply want to upgrade all
users of an older major release version to a new
version, it doesn't make much sense. Want to
simply say

<trigger-dependency type="older">
    <module-dependency codenamebase="stabilized"
major="1"/>
</trigger-dependency>

That syntax currently results in a runtime error,
which is not really necessary - the code actually
handles this correctly already, except for the error.

Adding a unit test to check the new behavior too.
Comment 1 Jesse Glick 2004-12-23 20:04:03 UTC
committed   * Up-To-Date  1.8        
core/src/org/netbeans/core/modules/AutomaticDependencies.java
committed   * Up-To-Date  1.3        
core/src/org/netbeans/core/modules/module-auto-deps-1_0.dtd
committed   * Up-To-Date  1.6        
core/test/unit/src/org/netbeans/core/modules/AutomaticDependenciesTest.java
committed   * Up-To-Date  1.6        
core/test/unit/src/org/netbeans/core/modules/data/auto-deps-1.xml
committed   * Up-To-Date  1.3        
www/www/dtds/module-auto-deps-1_0.dtd
Comment 2 Jaromir Uhrik 2005-07-14 16:18:12 UTC
Verified.