Bug? #if JavaWhatever throws compiler error 'unclosed character literal'

Discussion in 'Bugs & wishlist' started by walt61, Feb 12, 2015.

  1. walt61

    walt61 Active Member Licensed User

    Hi Erel,

    You already know you've got brilliant products, but still: brilliant products ! :) I came across this issue - it took me a while to figure out what was going on and I reckon it's a bug. I use B4A 4.30 with Build Configurations. In a shared code module I had

    Code:
    #If JavaObject
    ...
    #End If
    As of B4A 4.30 with the inline Java, the '#If Java' (regardless of any other characters following in that string) seems to be interpreted by the compiler as the start of inline Java and the error 'unclosed character literal' comes up. Changing 'Java' to 'Ja_va' obviously solved it, so no big deal, but it was confusing and I presume this behaviour wasn't intentional.

    Cheers,

    walt61
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    It is indeed a bug. Will be fixed.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice