Bug 15332

Summary: Problem with "\\" in editor/compiler
Product: [Eclipse Project] JDT Reporter: Tal Cohen <tal>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: PC   
OS: other   
Whiteboard:

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.