eclipse-ee4j / eclipse-ee4j/expressly

Bug Report: java.lang.String cannot be converted to java.lang.Long in JSF EL Expression

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
15
Forks
10
PR merge metrics
No merged PRs in 30d

Description

When using a tag with a JSF Expression Language (EL) expression that performs a numeric operation, such as:

```

```
The following error is thrown:
`Cannot convert [Welcome to PrimeFaces!!!] of type [class java.lang.String] to [class java.lang.Long]
`
Here, testView.string is a String property (Welcome to PrimeFaces!!!), and the comparison with a numeric expression 56 * 1 leads to a type mismatch.

Probably regression commit:
https://github.com/eclipse-ee4j/expressly/commit/704050fa638a44254e5e0975083ef9489586f995#diff-2ff982307127640577acb628d13e962081390439c5f3a62d694d09a42a1dfdd2L116

Example project with this bug:
[primefaces-test-cast-to-long.zip](https://github.com/user-attachments/files/17979629/primefaces-test-cast-to-long.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.