Reply To: java.lang.IllegalStateException: PhaseBinding does not support retrieval

Splash Forums Rewrite Users java.lang.IllegalStateException: PhaseBinding does not support retrieval Reply To: java.lang.IllegalStateException: PhaseBinding does not support retrieval

#24458

0swald
Participant

Looks like I’ve fixed the bug. Class org.ocpsoft.rewrite.util.ParameterUtils, method performRetrieval(final Rewrite event, final EvaluationContext context, final Parameter<?> parameter) has been marked as FIXME by Linkcoln, so I’ve added an obvious fix regarding supportsRetrieval() :


      // FIXME Should not have to worry about order here.

      for (Binding binding : bindings)
      {
         if (result == null && !(binding instanceof Evaluation) && binding.supportsRetrieval())
         {
            result = binding.retrieve(event, context);
         }
      }

Lincoln, Christian, please let me know if I’m right here, I’ll submit a patch.

  • This reply was modified 8 years, 5 months ago by  0swald.
  • This reply was modified 8 years, 5 months ago by  0swald.