Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

and yes i know.. this is somewhere not really type safe..because now a CompoundModel is used and that is based on strings..
But in the code is more descriptive.. but i guess somehow we should have a warning (sad)
And this is also the reason why i am also working on type safe property models.
(Johan Compagner)

Suggestion 1

...

}}{{{}setResponsePage(){} --signature

The initial issue that started this discussion was a problem with this method signature:

...

I think another example is the constructor of RestartResponseAtInterceptPageException (and similar classes) that take a class as an argument.

Code Block
	public RestartResponseAtInterceptPageException(final Class< ? extends Page< ? >> interceptPageClass)
	{
		if (interceptPageClass == null)
		{
			throw new IllegalStateException("Argument pageClass cannot be null");
		}
		redirectToInterceptPage(interceptPageClass);
	}

...

Same as above. -Gerolf Seitz

Generics "Gotchas"

Palette