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 52707 - Undocumented use of reflection
Summary: Undocumented use of reflection
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Action Items (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: tasklist-issues@contrib
URL:
Keywords: ARCH
Depends on:
Blocks:
 
Reported: 2004-12-21 07:04 UTC by Jaroslav Tulach
Modified: 2004-12-21 16:00 UTC (History)
2 users (show)

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 Jaroslav Tulach 2004-12-21 07:04:50 UTC
Due to broken build by tasklist [1] it has been
revealed that the module is using reflection to
access java module[2]. This needs at least to be
documented, better replaced with a standard api.
Please use review steps [3] next time you
introduce or change (hidden) dependencies between
modules. 

[1]
http://www.netbeans.org/servlets/ReadMsg?msgId=877698&listName=broken_builds
[2]
http://www.netbeans.org/servlets/ReadMsg?msgId=877773&listName=broken_builds
[3]
http://openide.netbeans.org/tutorial/review-steps.html
Comment 1 _ pkuzel 2004-12-21 10:07:39 UTC
It's performance optimalization. There is fallback to standard&lazy
EditorCookie.
Comment 2 _ pkuzel 2004-12-21 13:13:27 UTC
exec-reflection answer updated.
Comment 3 Jaroslav Tulach 2004-12-21 15:59:43 UTC
Can't you have some kind of API between tasklist and java. Do you
really have to fallback to reflection?
Comment 4 Jesse Glick 2004-12-21 16:00:02 UTC
I added a note to the arch document, so hopefully it was updated with
a proper explanation.

Note that currently project.xml declares a runtime dep on o.n.m.java.
If this is not desired, and the module works without errors or
warnings without that dep, feel free to remove it (updating golden
files of course). But consider the problems that could be caused by
such a use of reflection, e.g. if the java module changes suddenly -
what APIs are you missing to be able to get what you need efficiently?
Are RFEs for these APIs filed and marked with an appropriate priority?