Open GoogleCodeExporter opened 9 years ago
Edit: Not solved.
No cyclic references exist, still causes crashes.
Original comment by Lume...@gmail.com
on 16 Feb 2015 at 4:09
The problem now occurs in the following code:
SearchContext context = null;
// Actually test that the AI finds the correct solution
Object state = context.source();
while (!context.goal()
.done(context, context.source())) {
// Search, then apply the move found, finally reset & setup
context.execute();
ApplicationStrategy application = context.application();
Object solution = context.solution();
if (solution instanceof Node) {
Node node = (Node) solution;
// Object payload = node.getPayload();
state = context.application()
.apply(context, state, node.getPayload());
}
context.reset()
.source(state);
}
With Eclipse crashing whenever the line with "Object payload =
node.getPayload();" is uncommented.
This crashes in a project that depends on a project which holds Node.
All classes (SearchContext, Node, etc) heavily use Lombok.
Node:
@Data
@Accessors(chain = true)
@ToString(exclude = { "parent", "children" })
public abstract class Node<A, B extends Node> {
protected A payload;
protected B parent;
protected Array<B> children;
}
Original comment by Lume...@gmail.com
on 16 Feb 2015 at 4:35
[deleted comment]
There seems to be a link between "val" and the Node class.
Removing everything but @ToString still causes the crash, but only if "val" is
used somewhere else in the class that contains the above sample code.
Original comment by Lume...@gmail.com
on 16 Feb 2015 at 10:43
Original issue reported on code.google.com by
Lume...@gmail.com
on 16 Feb 2015 at 4:06