Bugs item #742226, was opened at 2003-05-23 02:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=742226&group_id=44253
Category: Definitions (source editor)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: java.lang.StringIndexOutOfBounds on a tricky file
Initial Comment:
In drjava drjava-20030520-1527.jar
The problem arises when you try to open or save a file
that contains something like this:
--cut here-->
#import java.util.*;
#import java.io.*;
class bug interface<--end cut
The bug only occurs if the file ends with one of the
keywords the language uses to define classnames (ie in
java: class and interface) and no extra character after it.
The problem comes from
drjava.model.definitions.DefinitionsDocument.java and
it's an issue with how the classnames are detected in
getNextTopLevelClassName(DefinitionsDocument.java:2496).
In fact, it's not much of an issue since it doesn't
happen regularly and even a simple change (adding space
to the end) enables you to save the file.
--EBW.
eri...@ep...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=742226&group_id=44253
|