typetools/annotation-tools

Bug in ad-hoc/bridge test

cdmcdonell opened this issue · 4 comments

I am building jsr308 + annotation tools + checker framework with Oracle jdk 1.8.0_112. After building jsr308-langtools, running ant in annotation-tools fails in annotation-file-utilities/tests/ad-hoc/bridge with the error: "Unable to find class A." Adding "." to CLASSPATH before running extract-annotations fixes this. I've attached a diff.
Makefile.txt

Thanks for the bug report, and I'm sorry you are having trouble.
I'm not able to reproduce the problem.
What is your CLASSPATH when you run ant in annotation-tools/? If you unset the CLASSPATH environment variable, do you still get the problem?

This looks safe, so I went ahead and committed your proposed change. Thanks!

Thank you, but I believe you nailed the problem. My CLASSPATH was set to something already in that shell. I unset it, and that seems to have fixed the problem. Thank you very much!

It's a general recommendation not to set one's CLASSPATH, but nonetheless our test suite should pass when one violates that recommendation -- and thanks to you, now it does.