Bug 394287 - [quick assist] "Combine to single String" should also work for non-String literals
Summary: [quick assist] "Combine to single String" should also work for non-String lit...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Billy Huang CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday
Depends on: 77632
Blocks:
  Show dependency tree
 
Reported: 2012-11-14 09:33 EST by Markus Keller CLA
Modified: 2013-05-07 01:32 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.