Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » There are 3 failures of JMockit JUnit Test after maven update project (difference between javac and eclipse JDT)
There are 3 failures of JMockit JUnit Test after maven update project [message #1822867] Mon, 16 March 2020 08:29 Go to next message
Wei Lao is currently offline Wei LaoFriend
Messages: 1
Registered: March 2020
Junior Member
I found a weird thing about Eclipse JDT.
JMockit is a maven project, all the test classes running JUnit Test will be ok after the project built by 'mvn clean install', the javac command that it does just like this (add -X in the maven build goals to show the options ) :
javac -d <...\main\target\test-classes> -classpath <maven_dependency-jar-lists> -sourcepath <...\main\test> -g -nowarn -target 1.7 -source 1.7 -encoding UTF-8 -Xlint:none <test-class-java-file-lists>
But if updating the project by 'maven update project', the weird thing will be happen, there are 3 testcase will be failure.
It's seemed that these failure classes which generated by Eclipse Java Development Tool are very different with that javac generated.

PS:
JMockit's git repo: https://github.com/jmockit/jmockit1 (Vesion: 1.49 )
Eclipse: 2019-12
JDK: Oracle JDK 1.8.0_241
OS: Win7 64
Re: There are 3 failures of JMockit JUnit Test after maven update project [message #1823000 is a reply to message #1822867] Tue, 17 March 2020 20:47 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
If you can be more specific about the differences in behavior, perhaps also show the different class files (produced by javac vs. ecj), then I suggest you file a bug against JDT/Core.
Previous Topic:Unable to "Open Declaration"
Next Topic:Debuging
Goto Forum:
  


Current Time: Tue Dec 03 18:08:00 GMT 2024

Powered by FUDForum. Page generated in 0.02536 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top