IllegalFormatConversionException

12 views
Skip to first unread message

Eishay

unread,
Dec 28, 2009, 1:27:05 PM12/28/09
to scala-stopwatch
I'm using: stopwatch-1.0-for-scala-2.7.7.final-SNAPSHOT
Any ideas why do I get the following?

scala> Stopwatch("aa") {
| Thread.sleep(10)
| }

scala> Stopwatch.snapshot("aa").toString
java.util.IllegalFormatConversionException: f != java.lang.Long
at java.util.Formatter$FormatSpecifier.failConversion
(Formatter.java:3992)
at java.util.Formatter$FormatSpecifier.printFloat
(Formatter.java:2721)
at java.util.Formatter$FormatSpecifier.print(Formatter.java:
2666)
at java.util.Formatter.format(Formatter.java:2432)
at java.util.Formatter.format(Formatter.java:2366)
at ...

Alex Boisvert

unread,
Dec 28, 2009, 1:58:36 PM12/28/09
to scala-s...@googlegroups.com

Looks like I pushed a snapshot that didn't pass the test suite... I'll rectify as soon as I'm back to my computer.

Alex

Alex Boisvert

unread,
Dec 28, 2009, 6:14:45 PM12/28/09
to scala-s...@googlegroups.com
Should be fixed now.  I updated the repository. 

You'll need to delete stopwatch-1.0-for-scala-2.7.7.final-SNAPSHOT.jar in your local Maven2 repo.

alex
Reply all
Reply to author
Forward
0 new messages