commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: [bcel] BCEL 6.0 review
Date Fri, 06 Jun 2014 12:27:59 GMT
I see test coverage failures on Java 6 as well:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.bcel.AnnotationAccessFlagTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.162 sec -
in org.apache.bcel.AnnotationAccessFlagTestCase
Running org.apache.bcel.AnnotationDefaultAttributeTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec -
in org.apache.bcel.AnnotationDefaultAttributeTestCase
Running org.apache.bcel.AnnotationGenTestCase
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.066 sec
<<< FAILURE! - in org.apache.bcel.AnnotationGenTestCase
testConstructMutableAnnotation(org.apache.bcel.AnnotationGenTestCase)  Time
elapsed: 0.063 sec  <<< ERROR!
java.lang.ExceptionInInitializerError: null
        at
org.apache.bcel.generic.ReferenceType.<init>(ReferenceType.java:36)
        at org.apache.bcel.generic.ObjectType.<init>(ObjectType.java:69)
        at
org.apache.bcel.generic.ObjectType.getInstance(ObjectType.java:60)
        at org.apache.bcel.generic.Type.<clinit>(Type.java:50)
        at
org.apache.bcel.AnnotationGenTestCase.testConstructMutableAnnotation(AnnotationGenTestCase.java:68)

testVisibleInvisibleAnnotationGen(org.apache.bcel.AnnotationGenTestCase)
Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.bcel.generic.ObjectType
        at
org.apache.bcel.AnnotationGenTestCase.testVisibleInvisibleAnnotationGen(AnnotationGenTestCase.java:93)

Running org.apache.bcel.AnonymousClassTestCase
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec -
in org.apache.bcel.AnonymousClassTestCase
Running org.apache.bcel.CounterVisitorTestCase
Tests run: 37, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec
- in org.apache.bcel.CounterVisitorTestCase
Running org.apache.bcel.ElementValueGenTestCase
Tests run: 11, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.006 sec
<<< FAILURE! - in org.apache.bcel.ElementValueGenTestCase
testCreateClassElementValue(org.apache.bcel.ElementValueGenTestCase)  Time
elapsed: 0.001 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.bcel.generic.ObjectType
        at
org.apache.bcel.ElementValueGenTestCase.testCreateClassElementValue(ElementValueGenTestCase.java:205)

testCreateEnumElementValue(org.apache.bcel.ElementValueGenTestCase)  Time
elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.bcel.generic.ObjectType
        at
org.apache.bcel.ElementValueGenTestCase.testCreateEnumElementValue(ElementValueGenTestCase.java:181)

Running org.apache.bcel.EnclosingMethodAttributeTestCase
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec -
in org.apache.bcel.EnclosingMethodAttributeTestCase
Running org.apache.bcel.EnumAccessFlagTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec -
in org.apache.bcel.EnumAccessFlagTestCase
Running org.apache.bcel.FieldAnnotationsTestCase
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.006 sec
<<< FAILURE! - in org.apache.bcel.FieldAnnotationsTestCase
testFieldAnnotationModification(org.apache.bcel.FieldAnnotationsTestCase)
Time elapsed: 0.001 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.bcel.generic.ObjectType
        at
org.apache.bcel.AbstractTestCase.createFruitAnnotationEntry(AbstractTestCase.java:176)
        at
org.apache.bcel.FieldAnnotationsTestCase.testFieldAnnotationModification(FieldAnnotationsTestCase.java:82)

Running org.apache.bcel.GeneratingAnnotatedClassesTestCase
Tests run: 9, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.015 sec
<<< FAILURE! - in org.apache.bcel.GeneratingAnnotatedClassesTestCase
testGenerateMethodLevelAnnotations1(org.apache.bcel.GeneratingAnnotatedClassesTestCase)
Time elapsed: 0.004 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.bcel.generic.Type
        at
org.apache.bcel.GeneratingAnnotatedClassesTestCase.createMethodGen(GeneratingAnnotatedClassesTestCase.java:640)
        at
org.apache.bcel.GeneratingAnnotatedClassesTestCase.buildClassContentsWithAnnotatedMethods(GeneratingAnnotatedClassesTestCase.java:436)
        at
org.apache.bcel.GeneratingAnnotatedClassesTestCase.testGenerateMethodLevelAnnotations1(GeneratingAnnotatedClassesTestCase.java:143)

testGenerateMethodLevelAnnotations2(org.apache.bcel.GeneratingAnnotatedClassesTestCase)
Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.bcel.generic.Type
        at
org.apache.bcel.GeneratingAnnotatedClassesTestCase.createMethodGen(GeneratingAnnotatedClassesTestCase.java:640)
        at
org.apache.bcel.GeneratingAnnotatedClassesTestCase.buildClassContentsWithAnnotatedMethods(GeneratingAnnotatedClassesTestCase.java:436)
        at
org.apache.bcel.GeneratingAnnotatedClassesTestCase.testGenerateMethodLevelAnnotations2(GeneratingAnnotatedClassesTestCase.java:182)

testGenerateClassLevelAnnotations(org.apache.bcel.GeneratingAnnotatedClassesTestCase)
Time elapsed: 0.001 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.bcel.generic.ObjectType
        at
org.apache.bcel.GeneratingAnnotatedClassesTestCase.createSimpleVisibleAnnotation(GeneratingAnnotatedClassesTestCase.java:655)
        at
org.apache.bcel.GeneratingAnnotatedClassesTestCase.testGenerateClassLevelAnnotations(GeneratingAnnotatedClassesTestCase.java:100)

testModifyingClasses1(org.apache.bcel.GeneratingAnnotatedClassesTestCase)
Time elapsed: 0.001 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.bcel.generic.ObjectType
        at
org.apache.bcel.GeneratingAnnotatedClassesTestCase.createFruitAnnotation(GeneratingAnnotatedClassesTestCase.java:668)
        at
org.apache.bcel.GeneratingAnnotatedClassesTestCase.testModifyingClasses1(GeneratingAnnotatedClassesTestCase.java:386)

testModifyingClasses2(org.apache.bcel.GeneratingAnnotatedClassesTestCase)
Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.bcel.generic.ObjectType
        at
org.apache.bcel.GeneratingAnnotatedClassesTestCase.createSimpleVisibleAnnotation(GeneratingAnnotatedClassesTestCase.java:655)
        at
org.apache.bcel.GeneratingAnnotatedClassesTestCase.createCombinedAnnotation(GeneratingAnnotatedClassesTestCase.java:677)
        at
org.apache.bcel.GeneratingAnnotatedClassesTestCase.testModifyingClasses2(GeneratingAnnotatedClassesTestCase.java:403)

Running org.apache.bcel.InstructionFinderTestCase
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.033 sec
<<< FAILURE! - in org.apache.bcel.InstructionFinderTestCase
testSearchAll(org.apache.bcel.InstructionFinderTestCase)  Time elapsed:
0.033 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.bcel.generic.Type
        at
org.apache.bcel.classfile.Method.getArgumentTypes(Method.java:218)
        at
org.apache.bcel.InstructionFinderTestCase.testSearchAll(InstructionFinderTestCase.java:38)

Running org.apache.bcel.verifier.VerifierTestCase
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.027 sec
<<< FAILURE! - in org.apache.bcel.verifier.VerifierTestCase
testDefaultMethodValidation(org.apache.bcel.verifier.VerifierTestCase)
Time elapsed: 0.026 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.bcel.generic.Type
        at
org.apache.bcel.verifier.statics.Pass2Verifier$CPESSC_Visitor.visitMethod(Pass2Verifier.java:608)
        at org.apache.bcel.classfile.Method.accept(Method.java:106)
        at
org.apache.bcel.classfile.DescendingVisitor.visitMethod(DescendingVisitor.java:151)
        at org.apache.bcel.classfile.Method.accept(Method.java:106)
        at
org.apache.bcel.classfile.DescendingVisitor.visitJavaClass(DescendingVisitor.java:102)
        at org.apache.bcel.classfile.JavaClass.accept(JavaClass.java:215)
        at
org.apache.bcel.classfile.DescendingVisitor.visit(DescendingVisitor.java:89)
        at
org.apache.bcel.verifier.statics.Pass2Verifier$CPESSC_Visitor.<init>(Pass2Verifier.java:355)
        at
org.apache.bcel.verifier.statics.Pass2Verifier$CPESSC_Visitor.<init>(Pass2Verifier.java:311)
        at
org.apache.bcel.verifier.statics.Pass2Verifier.constant_pool_entries_satisfy_static_constraints(Pass2Verifier.java:296)
        at
org.apache.bcel.verifier.statics.Pass2Verifier.do_verify(Pass2Verifier.java:160)
        at
org.apache.bcel.verifier.PassVerifier.verify(PassVerifier.java:72)
        at org.apache.bcel.verifier.Verifier.doPass2(Verifier.java:77)
        at
org.apache.bcel.verifier.VerifierTestCase.testDefaultMethodValidation(VerifierTestCase.java:35)

Exception in thread "Thread-1" java.lang.NoClassDefFoundError: Could not
initialize class org.apache.bcel.generic.ObjectType
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
net.sourceforge.cobertura.coveragedata.TouchCollector.applyTouchesToSingleClassOnProjectData(TouchCollector.java:121)
        at
net.sourceforge.cobertura.coveragedata.TouchCollector.applyTouchesOnProjectData(TouchCollector.java:107)
        at
net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(ProjectData.java:270)
        at
net.sourceforge.cobertura.coveragedata.SaveTimer.run(SaveTimer.java:32)
        at java.lang.Thread.run(Thread.java:662)

Results :

Tests in error:
  AnnotationGenTestCase.testConstructMutableAnnotation:68
ExceptionInInitializer
  AnnotationGenTestCase.testVisibleInvisibleAnnotationGen:93
NoClassDefFound Cou...
  ElementValueGenTestCase.testCreateClassElementValue:205 NoClassDefFound
Could ...
  ElementValueGenTestCase.testCreateEnumElementValue:181 NoClassDefFound
Could n...

FieldAnnotationsTestCase.testFieldAnnotationModification:82->AbstractTestCase.createFruitAnnotationEntry:176
╗ NoClassDefFound

GeneratingAnnotatedClassesTestCase.testGenerateMethodLevelAnnotations1:143->buildClassContentsWithAnnotatedMethods:436->createMethodGen:640
NoClassDefFound

GeneratingAnnotatedClassesTestCase.testGenerateMethodLevelAnnotations2:182->buildClassContentsWithAnnotatedMethods:436->createMethodGen:640
NoClassDefFound

GeneratingAnnotatedClassesTestCase.testGenerateClassLevelAnnotations:100->createSimpleVisibleAnnotation:655
NoClassDefFound

GeneratingAnnotatedClassesTestCase.testModifyingClasses1:386->createFruitAnnotation:668
NoClassDefFound

GeneratingAnnotatedClassesTestCase.testModifyingClasses2:403->createCombinedAnnotation:677->createSimpleVisibleAnnotation:655
NoClassDefFound
  InstructionFinderTestCase.testSearchAll:38 ╗ NoClassDefFound Could not
initial...
  VerifierTestCase.testDefaultMethodValidation:35 ╗ NoClassDefFound Could
not in...

Tests run: 74, Failures: 0, Errors: 12, Skipped: 0

With all the following:

Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
08:51:28-0500)
Maven home: C:\Java\apache-maven-3.0.5
Java version: *1.6.0_45*, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_45\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
08:51:28-0500)
Maven home: C:\Java\apache-maven-3.0.5
Java version: *1.7.0_55*, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_55\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

Gary


On Thu, Jun 5, 2014 at 10:27 AM, Emmanuel Bourg <ebourg@apache.org> wrote:

> Le 05/06/2014 16:04, Gary Gregory a écrit :
> > Something went wrong with the code coverage, your site shows 0% for every
> > class.
>
> For some reason the test fails during the code coverage run with 'mvn
> site'.
>
>
> > How about adding PMD, FindBugs and Checkstyle?
> >
> > We would not have to fix everything but it would be informative.
>
> Sure, go ahead.
>
>
> Emmanuel Bourg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message