Summary: | unit tests failing due to misuse of getAbsolutePath() | ||
---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Jim Hugunin <jim-aj> |
Component: | IDE | Assignee: | Adrian Colyer <adrian.colyer> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P1 | ||
Version: | 1.1.1 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Jim Hugunin
2003-09-12 12:59:40 EDT
I'm raising this to a P1 bug because someone needs to investigate this bug before the 1.1.1 release. It's possibly just an issue with the test code; however, it might also indicate a subtle and dangerous bug in the structure model code. I confirm I can reproduce the failures. I've investigated all the BuildArgParserTestCase ones and they were harmless, but easy to fix - I hate failing test cases. Now looking at the StructureModelTest failures - potentially more serious. (Just appending progress to save anyone else duplicating work). Now fixed. The StructureModel test cases were indeed hiding a more subtle and serious bug - findNodeForSourceFile and findNodeForSourceLine were using absolute path instead of canonical path to look for matches - and so not finding corresponding nodes unless the path happened to match. This is the same problem that caused Andy to lose his outline view from AJDT. I changed three files. If anyone has the time to buddy-check my changes (sensible precaution this close to ship) I'd appreciate it. The files are: org.aspectj.asm.internal.AspectJElementHierarchy org.aspectj.ajdt.ajc.BuildArgParserTestCase org.aspectj.util.ConfigParser - At one point in the past those find methodhs did use canonical paths, but my over-optimistic migration to absolute paths changed that. I reviewed these changes and they are all correct. |