You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Constructor java/lang/StringBuffer(java.lang.CharSequence) is not available at the device!"
TotalCross 4.3.8 logs this when failing to build com.gitlab.geosales-open-source.totalcross-functional-toolbox:totalcross-functional-toolbox:2.0.3-retrolambda.
Describe the bug
AFAIK, TotalCross should replace all mentions of java.lang.CharSequence with totalcross.lang.String4D. But, in this specific case, this snippet causes TotalCross to not replace te CharSequence with something it knows how to deal with:
The workaround this problem I think it is just to take c.toString(), therefore indeed creating a String with it, and totalcross.lang.StringBuffer4D indeed has the constructor public StringBuffer4D(totalcross.lang.String4D str);
From my previous knowledge, this shoudn't happen.
To Reproduce
Add the following snippet to your code (may be your main class, it makes things easier):
Command line: /builds/SoftSite/geosales/.m2/repository/com/gitlab/geosales-open-source/totalcross-functional-toolbox/totalcross-functional-toolbox/2.0.3-retrolambda/totalcross-functional-toolbox-2.0.3-retrolambda.jar /r <PRIVATE KEY> /t /n totalcross-functional-toolbox-2.0.3-retrolambdaLib.tcz
TotalCross SDK version 4.3.8.0 running on linux with JDK 1.8
Current folder: /builds/SoftSite/geosales
Etc directory: /builds/SoftSite/geosales/totalcross-cache/4.4.1/TotalCross/etc/
Classpath: [...]
The application was signed with the given registration key.
Next SDK expiration date: 5 September, 2020
Warning: line number information not found. Stack traces at device will be shown incomplete. To fix this, enable debug information when compiling the files. First detected on class br.com.softsite.toolbox.Pair$$Lambda$11
################################# FATAL ERROR ##################################
Class: br/com/softsite/toolbox/stream/Collectors$JoiningAcc
Method: <C>
z.b: Constructor java/lang/StringBuffer(java.lang.CharSequence) is not available at the device! To find the available ones, see the Javadocs for totalcross.lang.StringBuffer class. Be aware that the classes and methods you use from the java.lang package at desktop are automatically transformed by tc.Deploy into the classes and methods available in totalcross.lang. Thus, you must use only the classes and methods described in the javadocs.
Devices:
Device: SDK tc.Deploy
TotalCross Version: 4.3.8
The text was updated successfully, but these errors were encountered:
"Constructor java/lang/StringBuffer(java.lang.CharSequence) is not available at the device!"
TotalCross 4.3.8 logs this when failing to build
com.gitlab.geosales-open-source.totalcross-functional-toolbox:totalcross-functional-toolbox:2.0.3-retrolambda
.Describe the bug
AFAIK, TotalCross should replace all mentions of
java.lang.CharSequence
withtotalcross.lang.String4D
. But, in this specific case, this snippet causes TotalCross to not replace teCharSequence
with something it knows how to deal with:The workaround this problem I think it is just to take
c.toString()
, therefore indeed creating aString
with it, andtotalcross.lang.StringBuffer4D
indeed has the constructorpublic StringBuffer4D(totalcross.lang.String4D str);
From my previous knowledge, this shoudn't happen.
To Reproduce
Add the following snippet to your code (may be your main class, it makes things easier):
And try to call
tc.Deploy
your app.Expected behavior
Compilation success
Screenshots or videos
From my CI logs:
Devices:
tc.Deploy
The text was updated successfully, but these errors were encountered: