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 93612 - Very long path caused exception.
Summary: Very long path caused exception.
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Kirill Sorokin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-30 17:36 UTC by Michael Nazarov
Modified: 2007-04-24 12:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (12.64 KB, image/png)
2007-01-30 17:38 UTC, Michael Nazarov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nazarov 2007-01-30 17:36:32 UTC
If one enter very long path into field, say: d:\glassfish\.\.\.\ {many times}
.\.\.\ exception will appear. After window with exception closed - installer
closed as well.
Comment 1 Michael Nazarov 2007-01-30 17:38:11 UTC
Created attachment 37845 [details]
screenshot
Comment 2 Kirill Sorokin 2007-02-05 17:37:47 UTC
Fixed. Now some manual filtering is applied before passing the path to all other
procedures. This should help.
Comment 3 Michael Nazarov 2007-04-24 12:07:03 UTC
Works, but very VERY slow. Don't know the reason - fix or Java or OS issue...
Comment 4 Kirill Sorokin 2007-04-24 12:35:56 UTC
The relative components elimination is based mostly on string's replacements.
Given the immutability of strings in java I can assume that this results in A
LOT of objects being created and gc'ed. 

Don't think we would be able to make it any faster as we cannot operate on
mutable character sequences. Nor I feel the need to. Not a common use case.