rachavz / reflections

Automatically exported from code.google.com/p/reflections
Do What The F*ck You Want To Public License
0 stars 0 forks source link

possible corrupted jar 0.9.9.rc1 #155

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
import com.netflix.astyanax.Keyspace
import org.reflections.Reflections

class EntityManager(keyspace:Keyspace, rootpkg:String = "", create:Boolean = 
false)
{
   private val reflections = new Reflections(rootpkg)
}

What is the expected output? What do you see instead?

[error] error while loading Reflections, class file 'C:\Documents and 
Settings\majitel.RADIM\.ivy2\cache\org.reflections\reflections\jars\reflections-
0.9.9-RC1.jar(org/reflections/Reflections.class)' is broken
[error] (class java.lang.RuntimeException/bad constant pool tag 10 at byte 657)
[error] 
C:\eclipse\workspace\play\entitymappertest\src\main\scala\em\EntityManager.scala
:9: org.reflections.Reflections does not have a constructor
[error]    private val reflections = new Reflections(rootpkg)
[error]                              ^

What version of the product are you using? On what operating system?
scala 2.10.2

Original issue reported on code.google.com by kolar.radim on 19 Aug 2013 at 10:27

GoogleCodeExporter commented 9 years ago
Its scala bug caused by missing dependency jar "com.google.code.findbugs" % 
"jsr305" % "2.0.1"

Original comment by kolar.radim on 21 Aug 2013 at 7:21

GoogleCodeExporter commented 9 years ago
Scala 2.11.0-M5 gives better error messages here than 2.10; it actually tells 
you which classes are missing, rather than merely asserting that something is 
"broken".

jsr305 isn't the only additional library you need; see 
https://code.google.com/p/reflections/wiki/ClasspathNotes

Original comment by sethti...@gmail.com on 24 Nov 2013 at 7:37

GoogleCodeExporter commented 9 years ago

Original comment by ronm...@gmail.com on 5 Jun 2014 at 7:13