History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-1898
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Graeme Rocher
Reporter: Evan Slatis
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Grails

Classpath not for Java sources set when recompiling Java classes

Created: 27/Nov/07 01:14 PM   Updated: 29/Nov/07 09:44 AM
Component/s: None
Affects Version/s: 1.0-RC1
Fix Version/s: 1.0-RC2

Time Tracking:
Not Specified

Environment: JDK 1.6, Vista


 Description  « Hide
When changing a Java class under the src directory, a recompile does not set the local Grails classpath. This results in a changed class unable to compile if it references any other Java classes within the project.

To test, create a package with a couple of Java entity classes that refer to each other. Run the application. Change one of the two classes. Hilarity ensues as Grails repeated tries to recompile the changed class and repeated encounters compilation errors as (which should cause it to either stop compiling or exit the running app) the changed class cannot find any of the other classes, even if they are in the same package.

The only way to recompile the class is to stop the app, clean it, and then restart it to force a full build.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Graeme Rocher - 29/Nov/07 09:11 AM
I've fixed the bug where it continously attempts to recompile. I'm still investigating the recompilation problem of java sources