• Post Reply Bookmark Topic Watch Topic
  • New Topic

JUnit Failure Trace links to wrong code sections  RSS feed

 
Iarla O'Riada
Ranch Hand
Posts: 87
Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my failure trace, I see a NPE for a method on line 3074. But when I double click it in Eclipse, there is a blank line there. The file is a .class file, not a .java file so maybe Eclipse is not decompliling correctly. But I'm wondering if the wrong file is being used for this review somehow?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 36656
475
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Old code seems likely. The first thing is to do project > clean to get rid of any old class files.
 
Iarla O'Riada
Ranch Hand
Posts: 87
Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne, you were right about the sources being out of date.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!