Giter Site home page Giter Site logo

jesperpedersen / tattletale Goto Github PK

View Code? Open in Web Editor NEW
73.0 6.0 55.0 30.91 MB

Tattletale is a tool that can help you get an overview of the project you are working on or a product that you depend on.

Home Page: http://www.jboss.org/tattletale/

Java 99.95% Shell 0.05%

tattletale's People

Contributors

jesperpedersen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tattletale's Issues

Error when analyzing Java 8 class files

java.io.IOException: invalid constant type: 18
at javassist.bytecode.ConstPool.readOne(ConstPool.java:1090)
at javassist.bytecode.ConstPool.read(ConstPool.java:1033)
at javassist.bytecode.ConstPool.(ConstPool.java:149)
at javassist.bytecode.ClassFile.read(ClassFile.java:764)
at javassist.bytecode.ClassFile.(ClassFile.java:108)
at javassist.CtClassType.(CtClassType.java:94)
at javassist.ClassPool.makeClass(ClassPool.java:717)
at javassist.ClassPool.makeClass(ClassPool.java:695)
at org.jboss.tattletale.analyzers.AbstractScanner.scanClasses(AbstractScanner.java:179)
at org.jboss.tattletale.analyzers.JarScanner.scan(JarScanner.java:106)
at org.jboss.tattletale.Main.execute(Main.java:612)
at org.jboss.tattletale.Main.main(Main.java:1099)

This can be fixed by building Tattletale with <property name="version.javassist" value="3.19.0-GA"/> in the build.xml.

Bug: ant:tattlereport throwing ClassCastException

Expected
That TattleReport run without producing errors, or if an error does occur that it explains what the error is. No unhandled exceptions are expected -- TattleReport is expected to gracefully handle malformed input and similar.

Actual
The following stack trace is shown in our build system:

[ant:tattletaleReport] java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
[ant:tattletaleReport] at org.jboss.tattletale.analyzers.AbstractScanner.scanClasses(AbstractScanner.java:190)
[ant:tattletaleReport] at org.jboss.tattletale.analyzers.JarScanner.scan(JarScanner.java:106)
[ant:tattletaleReport] at org.jboss.tattletale.Main.execute(Main.java:612)
[ant:tattletaleReport] at org.jboss.tattletale.ant.ReportTask.execute(ReportTask.java:310)
[ant:tattletaleReport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
[ant:tattletaleReport] at sun.reflect.GeneratedMethodAccessor325.invoke(Unknown Source)
[ant:tattletaleReport] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ant:tattletaleReport] at java.lang.reflect.Method.invoke(Method.java:498)
[ant:tattletaleReport] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
... snip ...

Repro

  • It's reproducible every time in my build environment, but I have not yet isolated what is different about my build system. See the notes below though.

Notes
Looking at the code we see the following: https://github.com/jesperpedersen/tattletale/blob/master/src/main/java/org/jboss/tattletale/analyzers/AbstractScanner.java#L190

  Long serialVersionUID = null;
  try
  {
     CtField field = ctClz.getField("serialVersionUID");
     serialVersionUID = (Long) field.getConstantValue();
  }
  catch (NotFoundException nfe)
  {
     // Ignore - not serializable
  }

Therefore it seems likely that the serialVersionUID's value is an Integer, and hence why it's having trouble casting this to a Long.

maven freindly

to convert to Maven (pom based) project model, who's blessing is needed ?

XML report

Is it possible to have an XML report?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.