[jboss-user] [JBoss Seam] - EL null bug?

msznapka do-not-reply at jboss.com
Sun Oct 7 10:27:30 EDT 2007


Hello I have following code:


  | #{utils.bug(null)}
  | 


  | public String bug(String s) {
  |     log.debug("Bug:" + (s == null) + "," + ("".equals(s)));
  |     return "";
  | }
  | 


  | Bug:false,true
  | 

As you see, the argument from EL is passed as empty string and not as a null value. It is a bug, or it is EL feature?

Thx

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092337#4092337

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092337



More information about the jboss-user mailing list