Bug 8579 - EL fails to throw exception in case of divide by zero.
Summary: EL fails to throw exception in case of divide by zero.
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: All All
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2002-04-27 03:08 UTC by Ryan Lubke
Modified: 2004-11-16 19:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Lubke 2002-04-27 03:08:11 UTC

<c:out value="${ 1 / 0 }"/>

 - or -

<c:out value="${ 1 div 0 }"/>


Infinity is displayed, not Throwable is caught.
Comment 1 Nathan Abramson 2002-04-27 12:46:28 UTC
I guess we missed the fact that division by 0 is perfectly legal
in Java.  We can certainly change the RI to throw an exception in
this case, but I wonder if we should remove this behavior from the
spec, since it isn't really necessary.
Comment 2 Nathan Abramson 2002-04-27 20:51:40 UTC
Looks like we're "clarifying" the spec to say that divide by zero is
not one of the example conditions that would throw an exception.