Improve Visitor signature

Bug #631522 reported by Timo Westkämper on 2010-09-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Medium
Unassigned

Bug Description

Something like this :

interface Visitor<R,C>{

    R visit(Path<?> path, C context);

   // ...
}

interface Expression {

  <R,C> R accept(Visitor<R,C> visitor);

}

This way a context can be supplied and something can be returned.

The current form is

interface Visitor {

  void visit(Path<?> path;

 // ...
}

Changed in querydsl:
importance: Undecided → Medium
milestone: none → 2.0
description: updated
Changed in querydsl:
status: New → In Progress
Changed in querydsl:
status: In Progress → Fix Committed

Released in 1.9.6

Changed in querydsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers