You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ta...@apache.org on 2022/08/30 12:00:35 UTC

[myfaces] branch main updated: MYFACES-4448 Fix impossible cast (#293)

This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/main by this push:
     new a2c90265d MYFACES-4448 Fix impossible cast (#293)
a2c90265d is described below

commit a2c90265d22595e8f2ee59bf05b5226c993606c0
Author: Piotrek Żygieło <11...@users.noreply.github.com>
AuthorDate: Tue Aug 30 14:00:30 2022 +0200

    MYFACES-4448 Fix impossible cast (#293)
    
    Co-authored-by: Piotrek Żygieło <pz...@users.noreply.github.com>
---
 .../main/java/org/apache/myfaces/view/facelets/compiler/TextUnit.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TextUnit.java b/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TextUnit.java
index aa761d6b4..61886ebc4 100644
--- a/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TextUnit.java
+++ b/impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TextUnit.java
@@ -580,7 +580,7 @@ final class TextUnit extends CompilationUnit
             }
             else if (ins instanceof LiteralNonExcapedTextInstruction)
             {
-                text = ((LiteralTextInstruction)ins).getText();
+                text = ((LiteralNonExcapedTextInstruction)ins).getText();
                 instructionType = 2;
             }
             else if (ins instanceof LiteralXMLInstruction)