On Wednesday, September 18, 2019 at 1:45:46 PM UTC+2, Marc R. Hoffmann 
wrote:

> The interesting question is, why some class files seems to have a source 
> reference to "shehan/newOne". Normally it should look more like 
> "a/b/c/Foo.java".


Files

shehan/newOne/$moduleInitFrame.class
shehan/newOne/$moduleStartFrame.class

cause https://github.com/jacoco/jacoco/pull/941
FileNotFoundException with message "Is a directory"
because they have empty "SourceFile" attribute.

Java Virtual Machine Specification about "SourceFile" attribute ( 
https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.10 ) 
states

The string referenced by the sourcefile_index item will be interpreted as 
> indicating *the name of the source file from which this class file was 
> compiled*.


So in my opinion empty is not a valid value and you'd better report this to 
developers of Ballerina.


File

shehan/newOne/___init.class

causes https://github.com/jacoco/jacoco/issues/940
explanation is in 
https://github.com/jacoco/jacoco/issues/940#issuecomment-533659632


On Saturday, September 21, 2019 at 5:10:39 AM UTC+2, Shehan Dhaleesha wrote:

> So can I still have a hope?

 

If you exclude above files from generation of report, then even with JaCoCo 
version 0.8.4 you already should be able to generate report.

Also as explained on 
page https://www.jacoco.org/jacoco/trunk/doc/environment.html

Master branch of JaCoCo is automatically built and snapshot is available at 
https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.jacoco&a=jacoco&e=zip&v=LATEST
so you can wait a bit when fixes for both will arrive into master to try 
them before we'll do release.

Pull requests are also built automatically, and since first issue is 
already fixed in master, pull request with fix for the second contains both 
- https://ci.appveyor.com/project/JaCoCo/jacoco/builds/27575431/artifacts

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/16df6e21-b417-4825-8196-42b7eebb5185%40googlegroups.com.

Reply via email to