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 54364 - Find on JAR file in Libraries node throws IAE
Summary: Find on JAR file in Libraries node throws IAE
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marian Petras
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-02 13:46 UTC by zikmund
Modified: 2006-03-24 13:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
java.lang.IllegalArgumentException at org.netbeans.api.queries.SharabilityQuery.getSharability(SharabilityQuery.java:80) (3.16 KB, text/plain)
2005-02-02 13:46 UTC, zikmund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2005-02-02 13:46:01 UTC
Build 200502012121

1) Have a Java Project
2) Explore JAR in Libraries/Test Libraries node of
Projects view
3) Context menu | Find
4) EXCEPTION - see attachment
Comment 1 zikmund 2005-02-02 13:46:37 UTC
Created attachment 20145 [details]
java.lang.IllegalArgumentException at org.netbeans.api.queries.SharabilityQuery.getSharability(SharabilityQuery.java:80)
Comment 2 Tomas Zezula 2005-02-02 15:08:34 UTC
Find is handled by utilities module.
Comment 3 Marian Petras 2005-02-17 17:32:18 UTC
Confirmed, accepted.
Comment 4 Marian Petras 2005-02-22 09:54:18 UTC
Two possible solutions:
  - patch the org.openidex.search.SharabilityFilter
  - do not apply SharabilityFilter on package node

I will do the latter because SharabilityFilter is superfluous on
package nodes.
Comment 5 Marian Petras 2005-02-22 09:56:57 UTC
Done - change committed to the trunk.

Modified file:

    java/project/src/org/netbeans/spi/java/project/support/ui/:
                                    PackageViewChildren.java   (1.52)

Diff:
http://openidex.netbeans.org/source/browse/openidex/www/proposals/looks/index.html.diff?r1=1.2&r2=1.3&f=u
Comment 6 Marian Petras 2005-02-22 09:59:38 UTC
Sorry, the link to the diff was wrong.

Correct link to the diff:
http://openidex.netbeans.org/source/browse/java/project/src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java.diff?r1=1.51&r2=1.52&f=u
Comment 7 zikmund 2005-02-24 13:59:45 UTC
Verified in 200502231900, Find was removed.
Comment 8 zikmund 2005-02-24 14:00:06 UTC
Forgot to mark as Verified.