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 - ModuleAutoDeps unable to upgrade stabilized/0 -> stabilized/1
Summary: ModuleAutoDeps unable to upgrade stabilized/0 -> stabilized/1
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 51468
  Show dependency tree
 
Reported: 2004-12-23 19:47 UTC by Jesse Glick
Modified: 2008-12-23 08:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.