| Summary: | [12][syntax highlighting] Second (or later) Case Constant (String in this case) in a switch label is not colored blue | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Vikas Chandra <Vikas.Chandra> | ||||||
| Component: | Text | Assignee: | Noopur Gupta <noopur_gupta> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | daniel_megert, jarthana, noopur_gupta | ||||||
| Version: | 4.11 | ||||||||
| Target Milestone: | BETA J12 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | 539080, 542558 | ||||||||
| Bug Blocks: | 545120 | ||||||||
| Attachments: |
|
||||||||
|
Description
Vikas Chandra
> Second Case Constant
What about the third one?
>>What about the third one?
Everything except the 1st one. I adjusted the subject line to reflect the same.
With the latest patch released on bug 542558, I see this working well now. Vikas, can you please confirm once and resolve this? >>I see this working well now. Now it looks consistent to me but for the worse ! Even the 1st case coloring is broken and usage of those constants outside switch expression is not getting colored ( not sure if I checked that before but such things work well with java 8). Can you use the project here https://bugs.eclipse.org/bugs/show_bug.cgi?id=542560#c2 and attach screenshot if that is behaving OK on your setup. Created attachment 277499 [details]
screenshot of working code
Vikas, I am attaching what it looks in my set up. I know why it works in my set-up. I have made changes to the JDT UI project to set the default AST level to 12.
I think we should do that soon in the UI repo and make a Y build.
Works perfectly in your setup. We need a Y build with all the changes. (In reply to Jay Arthanareeswaran from comment #5) > I have made changes to the JDT UI project to set the default AST > level to 12. > > I think we should do that soon in the UI repo and make a Y build. That's bug 539080 and I am working on it. I need to go through all the UI code first to adapt to the changes and new APIs in the AST. Only changing the default AST level will cause more exceptions from the UI. It should be done by early next week. Fixed with bug 539080. |