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:53 UTC

[myfaces] branch 2.3.x updated: MYFACES-4448 Fix impossible cast (#295)

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

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


The following commit(s) were added to refs/heads/2.3.x by this push:
     new 54123ad2b MYFACES-4448 Fix impossible cast (#295)
54123ad2b is described below

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

    MYFACES-4448 Fix impossible cast (#295)
    
    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 242fd332b..1b71b5aea 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
@@ -586,7 +586,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)