agreed, although the contract is actually more between the tool and the STG than between the tool and the target.

Le 22 mai 2014 à 03:21, Sam Harwell <notifications@github.com> a écrit :

> In tool/src/org/antlr/v4/codegen/CodeGenerator.java:
> 
> > @@ -88,7 +88,12 @@ public Target getTarget() {
> >  	}
> >  
> >  	public STGroup getTemplates() {
> > -		return getTarget().getTemplates();
> The version check would be much easier as a method in the Target class, especially considering the Target implementation is responsible for loading its own template files.
> 
> —
> Reply to this email directly or view it on GitHub.
>