[SOLVED] Uncaught Error: No static method with signature 'System.Boolean Equals(System.String, System.StringComparison)

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
TaterJuice
Posts: 81
Joined: Thu Mar 16, 2017 5:40 am

[SOLVED] Uncaught Error: No static method with signature 'System.Boolean Equals(System.String, System.StringComparison)

Postby TaterJuice » Tue Sep 12, 2017 12:27 pm

Since 11.18 (or maybe .17?), my output Javascript no longer works if I have, ANYWHERE in my code, defined a Linq Comparison with String.Equals(str, StringComparison enum)

this throws an error:

Code: Select all

var results = values.FirstOrDefault((v) => v.Equals("SomeSearchString", StringComparison.CurrentCultureIgnoreCase));



Full error is:
Uncaught Error: No static method with signature 'System.Boolean Equals$34,184=32(System.String, System.StringComparison)' found in context 'AL'
at Object.JSIL.RuntimeErrorFormat (JSIL.Core.js?20179121327:10534)
at JSIL.MethodSignature.$StaticMethodNotFound (JSIL.Core.js?20179121327:7835)
at JSIL.MethodSignature.MethodSignature_CallVirtual$0$2$inlineCache2 [as CallVirtual] (MethodSignature.CallVirtual$0$2$inlineCache2:8)
at Meridian_Presenter_AddressFieldGroup_$l$gc__DisplayClass15_0.$l$gc__DisplayClass15_0_$lset_State$gb__0 (Meridian.Core.js?20179121327:8783)
at Delegate_Invoke (JSIL.Core.js?20179121327:9344)
at firstImpl (JSIL.Bootstrap.Linq.js?20179121327:147)
at Object.FirstOrDefault$b1$150[!!0],278[!!0,32]=!!0 (JSIL.Bootstrap.Linq.js?20179121327:215)
at JSIL.MethodSignature.MethodSignature_CallStatic$1$2$inlineCache2 [as CallStatic] (MethodSignature.CallStatic$1$2$inlineCache2:12)
at Meridian_Presenter_AddressFieldGroup.AddressFieldGroup_set_State (Meridian.Core.js?20179121327:8651)
at Function.AddressFieldGroup_get_Demo (Meridian.Core.js?20179121327:8603)

JS-Support
Site Admin
Posts: 787
Joined: Tue Apr 08, 2014 3:42 pm

Re: Uncaught Error: No static method with signature 'System.Boolean Equals(System.String, System.StringComparison)

Postby JS-Support » Wed Sep 13, 2017 6:59 am

Hi,

Thank you for reporting this issue.

It has now been fixed in Beta 11.19, which will be released this week.

Regards,
JS-Support


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest

 

 

cron