Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Type of operation charAt(index : Integer) is not String
Type of operation charAt(index : Integer) is not String [message #1730163] Fri, 22 April 2016 00:13 Go to next message
Glatz Martin is currently offline Glatz MartinFriend
Messages: 16
Registered: March 2016
Junior Member

is seems there is a problem with the implementation of charAt(index : Integer) : String

var aktChar : String = path.charAt(i);
results in "Illegal assignment to variable 'aktChar'. Expected String and found B"
(B is the first letter of path)

If I use var aktChar = path.charAt(i);
and call aktChar.type().println() I get an empty line.

Only following workaround works:
var aktChar : String = "" + path.charAt(i);

Best regards,

Re: Type of operation charAt(index : Integer) is not String [message #1730233 is a reply to message #1730163] Fri, 22 April 2016 13:18 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 475
Registered: January 2010
Senior Member
We were falling back on the Java String#charAt method, which returns a "char" and not a String. EOL does not have "char" as a primitive type, however.

We've fixed the issue on Git: the next interim build (usually ready in a few minutes) will have the fix. Until then, your workaround should be fine. Sorry for the inconvenience!
Previous Topic:[EVL] Method "satisfiesAll" not found for...
Next Topic:Epsilon: How to generate a documentation file (s)
Goto Forum:

Current Time: Sat Sep 22 08:05:15 GMT 2018

Powered by FUDForum. Page generated in 0.01686 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top