Bug 394287

Summary: [quick assist] "Combine to single String" should also work for non-String literals
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: Billy Huang <billyhuang31>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: billyhuang31, daniel_megert, deepakazad, manju656, markus.kell.r, nikolaymetchev
Version: 4.3Keywords: bugday
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 77632    
Bug Blocks:    

Description Markus Keller CLA 2012-11-14 09:33:35 EST
+++ This bug was initially created as a clone of Bug #77632 +++

The "Combine to single String" quick assist should also work if not all parts are StringLiterals, e.g.:

  "a" + 1 + "b"

Please refer to the Java Language Specification for the exact definition of how other literals (number, char) in a '+'-chain are combined.

This can't work for all kinds of expressions, of course.