Community
Participate
Working Groups
Problem is that ToolProvider.getSystemJavaCompiler(); returns 'null'. According to Kim, the SDK is installed and tools.jar in place.
I just tried on our Suse Linux machine using jdk-7-ea-bin-b137-linux-i586 and the tests pass.
When I try to run a small program using this machine that prints out the java system compiler, and it works perfectly fine. The best I can do for now is to skip the test when the system java compiler is null. This can potentially happen so we might want to add protection against this anyway.
Kim, can you spin another build once that's done? We've fixed most of the issues.
Sure, I'm running a test build for another bug. I'll rerun those tests with Java 7 once the zips are available.
Annotation processors don't behave exactly the same way between javac 1.7 and javac 1.6. I'll try to come up with a reasonable support for both.
Created attachment 193394 [details] Proposed fix
Released for 3.7M7.
(In reply to comment #6) > Annotation processors don't behave exactly the same way between javac 1.7 and > javac 1.6. > I'll try to come up with a reasonable support for both. What's the difference? Anything that needs more attention? Any clue why the tests get 'null' for getSystemJavaCompiler()? Aren't the tests run with Ant? Maybe some problem there?
(In reply to comment #5) > Sure, I'm running a test build for another bug. I'll rerun those tests with > Java 7 once the zips are available. Kim, I haven't seen the build. BTW: please, make sure that code coverage is disabled.
I had code coverage enabled in the previous build so I'll have to run them again. Are there specific test suites that you'd like me to run so instead of running all the tests again (4-5 hours)
(In reply to comment #11) > I had code coverage enabled in the previous build so I'll have to run them > again. Are there specific test suites that you'd like me to run so instead of > running all the tests again (4-5 hours) I'd like to run all, so that I can look at one page and get the full picture.
Okay, I'm rerunning the tests on Linux for N20110417-2000 which was a green build so any failures should be quite evident. I'll regenerate the page once they have completed.
(In reply to comment #9) > (In reply to comment #6) > > Annotation processors don't behave exactly the same way between javac 1.7 and > > javac 1.6. > > I'll try to come up with a reasonable support for both. > Most differences are around the handling of error type. This is loosely spec'd and therefore it is difficult to know exactly what is supposed to be returned. > What's the difference? Anything that needs more attention? jsr269 doesn't really have specs. The specs are the javadoc of the corresponding types. > Any clue why the tests get 'null' for getSystemJavaCompiler()? Aren't the tests > run with Ant? Maybe some problem there? No, but since this is possible I prefer to handle the cases inside the test suite. I believe that now the compiler.tool and compiler.apt tests are more resilient.
Verified for 3.7M7 using code inspection.