Summary: | [formatter] Java source formatting of a section or a project failes when /*"*/ is inside a string concat | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Ivan Motsch <ivan.motsch> | ||||
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> | ||||
Status: | VERIFIED DUPLICATE | QA Contact: | |||||
Severity: | major | ||||||
Priority: | P3 | CC: | jose, Olivier_Thomann, remy.suen, srikanth_sankaran | ||||
Version: | 3.5.1 | ||||||
Target Milestone: | 3.6 M4 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Ivan Motsch
2010-01-20 06:18:57 EST
I can't seem to reproduce this on I20100115-1100. Bugs with the Java tooling goes to JDT. Created attachment 156630 [details]
in the test Test.java file try context menu source->Format
This is a Plug-In project containing a source file Test.java that reporduces this bug.
Same thing happens when you have a comment like the following in a line: /** ***/ More specifically the comment has to start with a slash and two contiguous asterisks as a minimum and end with at least three contiguous asterisks and the slash. At least one blank is needed and no other character must appear to cause the error. As said in comment 1, the first problem described in comment 0 is fixed in 3.6 since bug 294529 has been fixed... However, there's still an exception while formatting a simple test using the javadoc comment of comment 4 : package format.test; public class Test2 { public static void main(String[] args) { String s="X"+/** ***/"Y"; } } To avoid confusion, I close this bug as duplicate of bug 294529 and I will open a new one for the comment 4 issue... *** This bug has been marked as a duplicate of bug 294529 *** Verified for 3.6M6 using build I20100305-101 |