Bug 221266 - Bad syntax error report on string literals containing escapes
Summary: Bad syntax error report on string literals containing escapes
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 3.4 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-04 00:37 EST by Evan O'Dorney CLA
Modified: 2008-03-25 11:24 EDT (History)
2 users (show)

See Also:


Attachments
Proposed fix (4.29 KB, patch)
2008-03-06 11:16 EST, David Audel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evan O'Dorney CLA 2008-03-04 00:37:17 EST
Build ID: I20070621-1340

Steps To Reproduce:
1. Type the following code into a file named Example.java:

public class Example {

    public static void main(String[] args) {
        foo(a "\"");
    }
}

2. There will be 2 syntax errors. One says: Syntax error on token """"", delete this token. It should be ""\""".


More information:
Comment 1 David Audel CLA 2008-03-06 11:16:34 EST
Created attachment 91772 [details]
Proposed fix
Comment 2 David Audel CLA 2008-03-06 11:18:49 EST
Released for 3.4M6.

Test added
  SyntaxErrorTest#test13()
Comment 3 Jerome Lanneluc CLA 2008-03-25 11:24:24 EDT
Verified for 3.4M6 using I20080325-0100