[Fb-contrib-commit] SF.net SVN: fb-contrib:[1084] trunk/fb-contrib/samples/LEST_Sample.java
Brought to you by:
dbrosius
From: <dbr...@us...> - 2009-01-20 05:25:12
|
Revision: 1084 http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1084&view=rev Author: dbrosius Date: 2009-01-20 05:25:09 +0000 (Tue, 20 Jan 2009) Log Message: ----------- add test for 2494245 Modified Paths: -------------- trunk/fb-contrib/samples/LEST_Sample.java Modified: trunk/fb-contrib/samples/LEST_Sample.java =================================================================== --- trunk/fb-contrib/samples/LEST_Sample.java 2009-01-20 03:52:10 UTC (rev 1083) +++ trunk/fb-contrib/samples/LEST_Sample.java 2009-01-20 05:25:09 UTC (rev 1084) @@ -72,4 +72,21 @@ } throw new RuntimeException("ok"); } + + public void testLestFP4(String s) throws Exception + { + double d; + try + { + d = Double.parseDouble(s); + } + catch (NumberFormatException nfe) + { + throw wrap(nfe); + } + } + + private Exception wrap(Exception e) { + return new Exception(e); + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |