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

Key: GROOVY-1257
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jochen Theodorou
Reporter: Jochen Theodorou
Votes: 0
Watchers: 0
Operations

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

compiling of classes with missing parents of a parent class

Created: 01/Mar/06 07:41 PM   Updated: 26/Apr/08 08:06 AM
Component/s: class generator
Affects Version/s: None
Fix Version/s: 1.6-beta-1, 1.5.7

Time Tracking:
Not Specified


 Description  « Hide
let us imagine we compile class A, which extends B and B extends C. B is precompiled and C is mising.

This means the loading of B will fail with an NoClassDefinitionFoundException since C is missing. Simply putting C in the pipeline is not enough as we need a loaded Version of B. This means we need to compile and load C before we can continue to load B. The compilation processes of C and A may share classes, for example interfaces or classes used as fields and such. This means we will have to revalidate the compilation queue after C is compiled nad remove classes that are already compiled after compiling C.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jochen Theodorou - 26/Apr/08 08:06 AM
this is resolved by initializing a super class with a primary ClassNode from the CompileUnit if available.