[ https://issues.apache.org/jira/browse/MCOMPILER-345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov moved MNG-6349 to MCOMPILER-345: ----------------------------------------------- Affects Version/s: (was: 3.5.2) (was: 3.5.0) 3.7.0 Component/s: (was: core) Key: MCOMPILER-345 (was: MNG-6349) Project: Maven Compiler Plugin (was: Maven) > Incorrect incremental test compilation > -------------------------------------- > > Key: MCOMPILER-345 > URL: https://issues.apache.org/jira/browse/MCOMPILER-345 > Project: Maven Compiler Plugin > Issue Type: Bug > Affects Versions: 3.7.0 > Environment: Ubuntu 16.04, Ubuntu 17.10 > Reporter: Chenguang Zhu > Priority: Major > Attachments: maven_bug_incremental_compile.zip > > > Summary: Consder the following simple project. There are three > classes, A, C (which extends A), and T (which is a test class). Class > A has method m(int), class C has method m(long), and test invokes m > with int value. If we run 'mvn test' the test passes. If we then > remove "extends A" from C and run 'mvn test' again, the run fails with > 'NoSuchMethodError'. We noticed in the output that the test class was > not recompiled (which should likely have been done). > Steps to Reproduce: Run the bash script ./s provided in this > directory. The script (1) runs mvn test, (2) removes 'extends A' from > class C, and (3) runs mvn test again. > Expected Results: p.CTest fails in the second execution. Failed tests: > test(p.CTest): expected:<0> but was:<1>. > Actual Results: p.CTest has an error in the second execution. > java.lang.NoSuchMethodError: p.C.m(I)I. -- This message was sent by Atlassian JIRA (v7.6.3#76005)