Share

Jalopy Java Source Code Formatter

Tracker: Bugs

1 jalopy fails when parsing jdk1.4 assert - ID: 565512
Last Update: Settings changed ( marcohu )

I'm using the jalopy plugin for eclipse (version F2), and when I tell it to

reformat java source which contains any jdk1.4 assert
statements, the jalopy parser fails on the assert statement (not
surprising, since assert is a language-leve change). I've attached a
file containing the error messages jalopy produced.

One
other suggestion - when the jalopy parser fails, it leaves error
messages in the eclipse task window which won't disappear;
could you add a checkbox in the jalopy preferences dialog which
would enable me to change the way parsing failures are displayed
in the eclipse task window (like the log-messages settings already
there).

Thanks.


Wes Price ( sourcesmith ) - 2002-06-06 20:17

1

Closed

Fixed

Marco Hunsicker

None

None

Public


Comments ( 4 )

Date: 2002-07-22 16:49
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

You have to change line 174 in
de/hunsicker/jalopy/parser/JavaRecognizer.java from

lexer.sourceVersion =
_prefs.getIntKeys.SOURCE_VERSION,JavaLexer.JDK_1_3);

to

lexer.sourceVersion =
_prefs.getIntKeys.SOURCE_VERSION, JavaLexer.JDK_1_4);

and make a clean build.

Cheers,
Marco


Date: 2002-07-10 18:32
Sender: sourcesmith

Logged In: YES
user_id=559155

I'd really like to start using jalopy to reformat a large body of code, so
I need
to be able to parse "assert" statemements. I've downloaded the
source
for 1.0b7; if you'll tell me what needs to be changed, I'll rebuild it
locally.

And that's correct, it doesn't let me delete the messages
manually (or at least it didn't - I've just updated to the 2.0 release of
eclipse,
and haven't tried testing the old plugin with it yet).

Thanks.


Date: 2002-07-09 13:54
Sender: beroul

Logged In: YES
user_id=1653

This really is a showstopper for me. Is there any chance we
could have a patch to fix it? (Or another beta release?)


Date: 2002-06-09 20:03
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

I somehow managed to change the source compliance level
from 1.4 to 1.3 with the latest beta. Will be configurable with
the next release (It's already in the code, just have to provide
the gui switches).

If this is a showstopper for you, download the source and I tell
you the location where to change a variable...

You can't delete the messages manually in the task window?

Cheers,
M.H.


Attached File ( 1 )

Filename Description Download
jalopy errors.txt jalopy error messages Download

Changes ( 6 )

Field Old Value Date By
status_id Open 2002-08-06 18:24 marcohu
resolution_id None 2002-08-06 18:24 marcohu
close_date - 2002-08-06 18:24 marcohu
priority 5 2002-07-28 19:33 marcohu
assigned_to nobody 2002-06-09 20:03 marcohu
File Added 24535: jalopy errors.txt 2002-06-06 20:17 sourcesmith