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 31062 - Restrict public packages of AutoUpdate.jar
Summary: Restrict public packages of AutoUpdate.jar
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: ARCH
Depends on: 19930
Blocks:
  Show dependency tree
 
Reported: 2003-02-14 11:28 UTC by Jaroslav Tulach
Modified: 2006-11-22 08:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
part of patch (1.92 KB, patch)
2005-12-06 08:55 UTC, Jiri Rechtacek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2003-02-14 11:28:16 UTC
Please add to manifest a line that restricts
access to non-public packages of autoupdate
module. See
http://www.netbeans.org/download/apis/org/openide/doc-files/upgrade.html#3.4-public-packages

This might not be an easy task as the default
package seems to contain  some api classes:
AutoUpdateType, etc. This this issue is likely
blocked by issue  19930
Comment 1 Jesse Glick 2003-02-17 15:44:04 UTC
Defect, or task?
Comment 2 Jaroslav Tulach 2003-02-18 08:13:30 UTC
I believe that this is a stopper for any version that wants Arch
review. As we do not want that for 3.5 I have filled it with target
version 4.0. So I am not looking for quick fix, I just want a fix for
next version.
Comment 3 Jesse Glick 2003-02-26 22:18:56 UTC
I don't think this is a defect, exactly - no known problem with
running the app caused by it.
Comment 4 Jaroslav Tulach 2003-02-27 08:18:25 UTC
This issue has been fired as part of Arch review and indicates
something that should be fixed if we want to fullfil the arch. That is
why this is defect p2 priority, but as the Arch was not goal for 3.5,
it is fired just for 4.0 version - it is not a defect for 3.5, just
for 4.0.
Comment 5 Marian Mirilovic 2003-12-01 10:48:44 UTC
reassigne to Jirka - new owner of autoupdate
Comment 6 Jiri Rechtacek 2004-02-09 14:16:52 UTC
It's not a defect which bloks any NB3.6 funcionality. It's targeted to
 Promo D (Cat-7: ARC - must pass ARC review).
Comment 7 Jan Chalupa 2004-02-12 15:57:12 UTC
Waiver approved.
Comment 8 Jiri Rechtacek 2004-04-14 13:22:07 UTC
Depends on issue 19930 which is targeted to future for now.
Comment 9 Jiri Rechtacek 2004-04-14 22:05:34 UTC
Depends on issue 19930 which is targeted to future for now.
Comment 10 Jesse Glick 2004-04-14 22:34:00 UTC
Disagree with evaluation. For now, no other modules should be
referring to any packages in autoupdate.jar. Therefore it should list

  OpenIDE-Module-Public-Packages: -

If and when it gets an API, it can specify its API packages there.
Don't see how status of issue #19930 blocks this.
Comment 11 Jiri Rechtacek 2004-04-16 13:29:41 UTC
Almost fixed, useless public classes has been restrict to
package-private. Autoupdate now publish only the classes which are
used out of autoupdate module (e.g. XMLAutoupdateType extends out NB
sources). Now only needs add description to module's javadoc, generate
javadoc in nbbuild/build.xml, specify api in arch document.
Comment 12 Jesse Glick 2004-04-16 15:54:53 UTC
IMHO it is probably not necessary to include Javadoc for the module;
you could, but better not to list it in nbbuild/build.properties,
since it is in no way official. However it is definitely a good idea
to mention in the arch document that this one class is public as a
"friend API" and who is expected to use it.
Comment 13 Jiri Rechtacek 2004-05-07 09:38:06 UTC
delayed after UI freeze
Comment 14 _ ttran 2004-07-21 08:39:28 UTC
no user visible effect, lowered priority to P3.  We may or may not fix
it for Promo D
Comment 15 Marian Mirilovic 2004-12-21 09:26:28 UTC
I guess this won't be fixed for NB4.0 , please evaluate again.
Comment 16 Jiri Rechtacek 2005-11-22 13:16:20 UTC
Because of stop of extending of Autoupdate's public packages AFAIK we shouldn't
expose any Autoupdate's packages. I'm going to remove
org.netbeans.modules.autoupdate from the public packages folder in project
metadata. Should be tracked as API_REVIEW_FAST.
Comment 17 Jiri Rechtacek 2005-12-05 14:47:30 UTC
Due to objections of a team which builds on the top of current Autoupdate and
finalization of releases on both teams I postpone this to next release to avoid
any unwanted problems.
Comment 18 Jesse Glick 2005-12-05 19:07:18 UTC
Can't we at least use <friend-packages> so only that team would be permitted to
use these packages in 5.0?
Comment 19 Jiri Rechtacek 2005-12-06 08:55:11 UTC
Created attachment 27574 [details]
part of patch
Comment 20 Jiri Rechtacek 2005-12-06 08:58:55 UTC
I currently don't know all packages which wants be acting as friend in NB5.0.
I'll apply this patch after create release50 branch.
Comment 21 Jiri Rechtacek 2006-11-22 08:58:03 UTC
Checking in autoupdate/manifest.mf;
/shared/data/ccvs/repository/autoupdate/manifest.mf,v  <--  manifest.mf
new revision: 1.62; previous revision: 1.61
done
Checking in autoupdate/arch/arch-autoupdate.xml;
/shared/data/ccvs/repository/autoupdate/arch/arch-autoupdate.xml,v  <-- 
arch-autoupdate.xml
new revision: 1.36; previous revision: 1.35
done
Checking in autoupdate/nbproject/project.xml;
/shared/data/ccvs/repository/autoupdate/nbproject/project.xml,v  <--  project.xml
new revision: 1.25; previous revision: 1.24
done
Checking in autoupdate/src/org/netbeans/modules/autoupdate/Autoupdater.java;
/shared/data/ccvs/repository/autoupdate/src/org/netbeans/modules/autoupdate/Autoupdater.java,v
 <--  Autoupdater.java
new revision: 1.62; previous revision: 1.61
done
Checking in ide/golden/cluster-deps.txt;
/shared/data/ccvs/repository/ide/golden/cluster-deps.txt,v  <--  cluster-deps.txt
new revision: 1.64; previous revision: 1.63
done
Checking in ide/golden/deps.txt;
/shared/data/ccvs/repository/ide/golden/deps.txt,v  <--  deps.txt
new revision: 1.379; previous revision: 1.378
done
Checking in ide/golden/friend-packages.txt;
/shared/data/ccvs/repository/ide/golden/friend-packages.txt,v  <-- 
friend-packages.txt
new revision: 1.58; previous revision: 1.57
done
Checking in ide/golden/public-packages.txt;
/shared/data/ccvs/repository/ide/golden/public-packages.txt,v  <-- 
public-packages.txt
new revision: 1.75; previous revision: 1.74
done
Checking in ide/welcome/nbproject/project.xml;
/shared/data/ccvs/repository/ide/welcome/nbproject/project.xml,v  <--  project.xml
new revision: 1.10; previous revision: 1.9
done
Checking in ide/welcome/src/org/netbeans/modules/welcome/ui/ArticlesAndNews.java;
/shared/data/ccvs/repository/ide/welcome/src/org/netbeans/modules/welcome/ui/ArticlesAndNews.java,v
 <--  ArticlesAndNews.java
new revision: 1.14; previous revision: 1.13
done
Checking in editor/options/nbproject/project.xml;
/shared/data/ccvs/repository/editor/options/nbproject/project.xml,v  <-- 
project.xml
new revision: 1.17; previous revision: 1.16
done
Checking in
editor/options/src/org/netbeans/modules/options/general/GeneralOptionsModel.java;
/shared/data/ccvs/repository/editor/options/src/org/netbeans/modules/options/general/GeneralOptionsModel.java,v
 <--  GeneralOptionsModel.java
new revision: 1.8; previous revision: 1.7
done