Just noticed an issue when subclassing Template.

Scenario:
For a template pattern "/test/{type}/{id}" with variables {"type" ==>
"testType"} (no id defined in the map), i want format() to return
  "/test/testType/{id}"
instead of the default
  "/test/testType/null"
so i tried to subclass it.

Issue:
in Template, format(VariableResolver) and all the VariableResolver class
definitions are all marked private, so i had to re-implement much of the
Template format method.

Solution:
i suggest to mark those methods and classes _protected_ so they can be
used by extending classes.

Any comments?

regards,
Matthias

Reply via email to