Bug 15332 - Problem with "\\" in editor/compiler
Summary: Problem with "\\" in editor/compiler
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P3 major (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-06 12:00 EDT by Tal Cohen CLA
Modified: 2002-05-10 14:58 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tal Cohen CLA 2002-05-06 12:00:51 EDT
(I'm using the M5 build.)

When the following line appears in the editor, problems happen:

System.out.print("\\");

The *editor* parses it correctly, and the trailing

 ");

appear in black (i.e., outside the string). However, the fragment

 "\\");

is underlined in a wavy red line, and the compiler refuses to accept this, 
saying: "String literal is not properly closed by a double-quote".
Comment 1 Olivier Thomann CLA 2002-05-09 15:50:54 EDT
Starting a fresh workspace using M5, I could not reproduce the problem.
I used this class as a 
test case, but everything is right and when I run it, I got:
\

public class Test {

	public 
static void main(String[] args) {
		System.out.print("\\");
	}
}

Could you please 
try to give more information about the failure? If you can't, I will have to close it as WORKSFORME.
Comment 2 Tal Cohen CLA 2002-05-10 02:45:15 EDT
I'm not at the office right now, but let's see if I remember how this happened:

IIRC, first, I wrote "\" by mistake, saved, and built. Then, when I fixed it, the wavy red line did not 
go away.
Comment 3 Olivier Thomann CLA 2002-05-10 10:27:00 EDT
It seems that there is a refresh problem, but if you write "\\", it compiles fine.
Comment 4 Olivier Thomann CLA 2002-05-10 14:58:29 EDT
The refresh problem seems to be fixed in latest. In fact I can get the red wavy line when I type "\" and 
then it disappears if I change it for "\\".
I am closing this PR as WORKSFORME. Please reopen it if 
you encounter the problem with the next integration build next week.