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 36482 - Remove dep on org.apache.regexp
Summary: Remove dep on org.apache.regexp
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: ARCH
Depends on:
Blocks:
 
Reported: 2003-10-08 00:40 UTC by Jesse Glick
Modified: 2008-12-22 20:11 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2003-10-08 00:40:02 UTC
Easier said than done -
ExternalCompilerGroup.parseErrors is given a
Reader and needs to scan it for (multiline)
regexps. However java.util.regex.Matcher's can
only be made from CharSequence, which Reader is
not (e.g. because it has no predetermined length),
and for this purpose we do not want to block to
read the whole input stream (compiler error
output) before matching anything.

http://developer.java.sun.com/developer/bugParade/bugs/4607121.html

tracks the API deficiency in Java.
Comment 1 Jesse Glick 2003-10-08 20:01:41 UTC
committed   * Up-To-Date  1.14        openide/compiler/build.xml
committed   * Up-To-Date  1.6         openide/compiler/manifest.mf
committed   * Up-To-Date  1.7        
openide/compiler/src/org/openide/compiler/ExternalCompilerGroup.java
added       * Up-To-Date  1.1        
openide/compiler/src/org/openide/compiler/ReaderCharSequence.java
added       * Up-To-Date  1.1        
openide/test/unit/src/org/openide/compiler/ReaderCharSequenceTest.java
Comment 2 Jesse Glick 2003-10-14 00:21:54 UTC
Refinements to use less memory when parsing:

committed   * Up-To-Date  1.8        
openide/compiler/src/org/openide/compiler/ExternalCompilerGroup.java
committed   * Up-To-Date  1.2        
openide/compiler/src/org/openide/compiler/ReaderCharSequence.java
committed   * Up-To-Date  1.2        
openide/test/unit/src/org/openide/compiler/ReaderCharSequenceTest.java