Bug 6418 - Scrapbook: "Unexpected End Of File" expected
Summary: Scrapbook: "Unexpected End Of File" expected
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 critical (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-29 07:32 EST by Magnus Ihse Bursie CLA
Modified: 2013-11-28 08:37 EST (History)
2 users (show)

See Also:


Attachments
Bug Error (337 bytes, patch)
2013-11-28 08:37 EST, Anand Nadar CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Ihse Bursie CLA 2001-11-29 07:32:03 EST
The syntax of the scrapbook has changed a bit since VAJ. Unaware of this, I 
tried writing the following piece of code in a scrapbook windows:

boolean foo = true;
foo;

Then I selected it, and chose "Display", expecting to see "(boolean) true". 
Instead I got:

Syntax error on token ";", "Unexpected End Of File" expected

which of course gave me a good laugh. :-) However, it was not really as helpful 
in tracking down the syntax of the scrapbook as it could have been.

Even better, the scrapbook should allow this kind of syntax, and when the user 
selects "Display", it should print the result of the last expression, 
regardless of if it ends with a ";" or not.
Comment 1 Darin Wright CLA 2001-11-29 10:12:31 EST
We are relying on JCORE for the parsing/compliation, which is producing this 
error. Moving to JDT CORE.
Comment 2 Philipe Mulet CLA 2001-11-29 11:32:50 EST
The syntax of a code snippet is a sequence of statements, optionally followed 
by one expression.

VAJ did accept a trailing semi-colon, which we don't. We can certainly silently 
ignore a trailing semi-colon, but this is not P1.
Comment 3 Philipe Mulet CLA 2001-12-10 17:56:29 EST
Why is this one ranked as 'critical' ?
Comment 4 Philipe Mulet CLA 2002-02-07 07:45:03 EST
Closing
Comment 5 Anand Nadar CLA 2013-11-28 08:37:43 EST
Created attachment 237798 [details]
Bug Error

Unknown Error At The End Of Code....