From: Jos A. Horsmeier <j.a.horsmeier@wa...> - 2004-12-13 14:34:37
I've embedded BeanShell in an application of mine and everything went fine.
BeanShell gets called at several points in the application to perform quite
At the moment, I'd like these scripts to be editable from within this same
A simple JTextArea derived class serves as the editor etc. etc. Now when a
error occurs, I catch the corresponding ParseException and I want to put the
position at where the error occured during parsing.
The trouble is this: the ParseException member variable 'currentToken' is
for some reason as well as most of the useful members of the ParseException
object and the boolean 'specialConstructor' is set to false...
I can't properly set the caret position like this and I feel reluctant to
message retrieved by getMessage() for the line and column number.
Of course I'm missing something trivial here. Any kind soul wants to
From: Jos A. Horsmeier <j.a.horsmeier@wa...> - 2004-12-13 20:15:16
> > The trouble is this: the ParseException member variable
> > 'currentToken' is null for some reason as well as most of the
> > useful members of the ParseException object and the boolean
> > 'specialConstructor' is set to false...
> There are a couple of open bugs about the information in ParseException (
Hm. But then again, the 'getMessage()' method (obviously the overridden one)
capable of producing the line/colomn number where the parse error occured.
I can't believe that I'm the first one experiencing this behaviour ...
kind regards, (and thanks for you reply; much appreciated)