wfaler/recursivity-commons — pull request #5 by jrudolph (2012-01-23 15:36:50+00:00)
Title: fix: make sure complete class file is read from stream into buffer

We are getting those errors while using bowler:

```
[info] scala.tools.scalap.scalax.rules.ScalaSigParserError: Unexpected failure
[info] at scala.tools.scalap.scalax.rules.Rules$$anonfun$expect$1.apply(Rules.scala:68)
[info] at scala.tools.scalap.scalax.rules.scalasig.ClassFileParser$.parse(ClassFileParser.scala:96)
[info] at com.recursivity.commons.bean.scalap.ScalaSigParser$.isScalaFile(ScalaSigParser.scala:86)
[info] at com.recursivity.commons.bean.scalap.ScalaSigParser$.process(ScalaSigParser.scala:59)
[info] at com.recursivity.commons.bean.scalap.ClassSignature$.apply(ClassSignature.scala:49)
[info] at com.recursivity.commons.bean.scalap.ClassSignature$.apply(ClassSignature.scala:62)
[info] at com.recursivity.commons.bean.scalap.ClassSignature$.apply(ClassSignature.scala:45)
[info] at org.bowlerframework.controller.POSORouteMapper$.apply(POSORouteMapper.scala:21)
[info] at org.bowlerframework.controller.FunctionNameConventionRoutes$class.$init$(FunctionNameConventionRoutes.scala:14)
```

That's because the code isn't checking properly if the complete class file has been read into the buffer before parsing the file. Here's a fix which implements this fix. How fast could you publish an updated version?