rpau/javalang-compiler

Bug on if assignments

Closed this issue · 1 comments

rpau commented

java.lang.RuntimeException: Ops! Error discovering the type of (messageKey = decodeMessage(callCtx))

public static void getMessageKeyInto(WebAppCallContext callCtx, URLParameter up) {
    LocaleText messageKey;

    if (!(messageKey = decodeMessage(callCtx)).isNull()) {
        up.setMessageKey(messageKey);
    }
}

Or

java.lang.RuntimeException: Ops! Error discovering the type of (externalMimeType = typeManager.getExternalMimeType(pixelObj.getMimeType()))

   // avoid multiple server calls
    MimeType externalMimeType = null;

  if (pixelObj.getType().equals(params.getFileconversion())
            || (externalMimeType = typeManager.getExternalMimeType(pixelObj.getMimeType())).toString()
                    .equals(params.getFileconversion())) {

...

rpau commented

Fixed at 2.2.8