• Post Reply Bookmark Topic Watch Topic
  • New Topic

JUnit Failure Trace links to wrong code sections

 
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
Sheriff
Posts: 35977
422
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!