Menu

#17 Fatal error CodeCoverCompilationParticipant

open
nobody
5
2010-12-01
2010-12-01
orihalcon
No

Compilation fails when I import classes of other projects.

[example]
projectA and projectB is Eclipse project.
projectB refer projectA.
projectB -> Properties dialog -> Java Build Path -> Project tab -> Add projectA

Foo class in projectA.
Bar class in projectB.
Bar class inherit Foo class.

import Foo;
class Bar extends Foo {
}

Enalbe CodeCover on projectB.

[result]
org.codecover.model.utils.FatalException: A fatal error occured: An
error occured when trying to compile the instrumented sources.
at org.codecover.model.utils.Logger.log(Logger.java:50)
at org.codecover.model.utils.Logger.log(Logger.java:65)
at org.codecover.model.utils.Logger.log(Logger.java:78)
at org.codecover.model.utils.Logger.fatal(Logger.java:92)
at org.codecover.eclipse.builder.CodeCoverCompilationParticipant.buildStarting(CodeCoverCompilationParticipant.java:355)

[env]
Eclipse 3.5.2
CodeCover 1.0.1.0
JDK 6 update 22

Discussion

  • orihalcon

    orihalcon - 2011-06-11

    I modified the CodeCoverCompilationParticipant class to solve this problem.
    See the addClasspath() method of the attached file for details.

     
  • orihalcon

    orihalcon - 2011-06-11

    CodeCoverCompilationParticipant class

     

Log in to post a comment.

MongoDB Logo MongoDB