Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-21380

EL syntax error: String is not closed with string concatenation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • 4.30.x
    • 4.3.x
    • jsf
    • None
    • -

    Description

      I get a EL syntax error: String is not closed. warning when an expression is composed using string concatenation:

      String expression = "#{" + entry.getValue() + "}";
      



      A different issue I think might be that when enabling the JSF support for the web module, the JBoss Tools Knowledge Support is enabled for the other modules too, including the data module.
      This leads to EL syntax error: Expecting expression. for a JPA query with Spring EL expressions:

      import org.springframework.data.jpa.repository.Query;
      import org.springframework.data.repository.PagingAndSortingRepository;
      
      public interface FunctionsRepository extends PagingAndSortingRepository<Function, Integer> {
      	@Query("SELECT DISTINCT r.workCenter.function"
      			+ " FROM StaffingAgreementDataRecord r"
      			+ " WHERE r.staffingAgreement.customer.id IN :customerIds"
      			+ " AND r.staffingAgreement.startDate <= :#{#interval.end}"
      			+ " AND r.staffingAgreement.endDate >= :#{#interval.start}")
      	List<Function> findByCustomersAndInterval(List<Integer> customerIds, Interval interval);
      }
      

      Attachments

        Activity

          People

            scabanovich Viacheslav Kabanovich (Inactive)
            andrei.ivanov@gmail.com Andrei Ivanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: