You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2019/02/16 22:33:00 UTC
[jira] [Assigned] (VELOCITY-908) Initialization failure on Windows
with Turkish locale
[ https://issues.apache.org/jira/browse/VELOCITY-908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov reassigned VELOCITY-908:
---------------------------------------
Assignee: Michael Osipov
> Initialization failure on Windows with Turkish locale
> -----------------------------------------------------
>
> Key: VELOCITY-908
> URL: https://issues.apache.org/jira/browse/VELOCITY-908
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 2.0
> Environment: Windows with Turkish locale
> Reporter: Pierre-Benoît Côté
> Assignee: Michael Osipov
> Priority: Minor
> Fix For: 2.1
>
>
> velocity-engine-core/2.0 fails to initialize on a Windows machine with Turkish locale.
>
> Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No enum constant org.apache.velocity.runtime.RuntimeConstants.SpaceGobbling.LİNES
>
> The code is catching `NoSuchElementException` instead of the `IllegalArgumentException` that is being thrown by Enum.valueOf
>
> [https://github.com/apache/velocity-engine/blob/42e56bf3328e6b8f496503dc198d876def70fb78/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeInstance.java#L356]
>
> [https://docs.oracle.com/javase/9/docs/api/java/lang/Enum.html#valueOf(java.lang.Class,%20java.lang.String)]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org