Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343148 - [xtend2] UOException on stringBuilder.append(stringConcartenation)
Summary: [xtend2] UOException on stringBuilder.append(stringConcartenation)
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-18 08:57 EDT by Moritz Eysholdt CLA
Modified: 2017-09-19 17:04 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Eysholdt CLA 2011-04-18 08:57:15 EDT
java.lang.UnsupportedOperationException
  at org.eclipse.xtext.xtend2.lib.StringConcatenation.charAt(StringConcatenation.java:163)
  at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:466)
  at java.lang.StringBuilder.append(StringBuilder.java:180)
  at java.lang.StringBuilder.append(StringBuilder.java:173)
  at org.eclipse.xtext.xbase.lib.IterableExtensions.elementsToString(IterableExtensions.java:210)

Code that led to this error looks something like:

---
class Foo {
  m1() '''«list.elementsToString("\n\n",[e|e.m2])»'''
  m2() '''foobarbaz'''
}
---
Comment 1 Sebastian Zarnekow CLA 2011-04-18 09:35:29 EDT
StringConcatenation will implement the complete CharSequence contract.
Comment 2 Sebastian Zarnekow CLA 2011-04-19 03:45:01 EDT
Pushed to master.
Comment 3 Moritz Eysholdt CLA 2011-04-19 04:10:51 EDT
thx!
Comment 4 Karsten Thoms CLA 2017-09-19 16:53:44 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 5 Karsten Thoms CLA 2017-09-19 17:04:33 EDT
Closing all bugs that were set to RESOLVED before Neon.0