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 42728 - ClassPathProviderImpl causes AIOOB
Summary: ClassPathProviderImpl causes AIOOB
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
Depends on:
Blocks: 41537
  Show dependency tree
Reported: 2004-05-03 17:46 UTC by Petr Nejedly
Modified: 2004-08-13 12:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 2004-05-03 17:46:06 UTC
can end up in AIOOB because getType can return -1,
but line 202 does cache[type] without further

How to reproduce (probably bad usage, but the IDE
should either survive or prevent me from doing it):
Create a j2se project, make a lib dir under its
project root, copy some external library there,
create a library definition from that folder and
add that library to the project classpath.
About any parser inquiry will cause the exception.
Comment 1 Jesse Glick 2004-08-04 02:11:48 UTC
Old issue; current code does not appear to have such a problem.