I just upgraded my Web project to use the Java 5.0 syntax. I am now getting validation errors in my JSPs when they reference classes compiled with the 5.0 compiler.
An example error is:
cannot access com.foo.Baz: bad class file: D:\dev\pql_web\WebRoot\WEB-INF\classes\com\foo\Baz.class.
NOTE: No JSP line number was avaliable so line 1 was used for the marker.
This appears to be because the validator uses Eclipse’s VM to validate the JSPs. This is bad because it links the project configuration to Eclipse’s environment. The validator should use the Workspace or Project JDK.
Thanks,
Ian