Pavel Konstantinov created IGNITE-2214:
------------------------------------------
Summary: Incorrect java-code for near configuration
Key: IGNITE-2214
URL:
https://issues.apache.org/jira/browse/IGNITE-2214 Project: Ignite
Issue Type: Sub-task
Reporter: Pavel Konstantinov
Assignee: Alexey Kuznetsov
Here is the currently generated java-code:
{code}
cache1.setNearConfiguration(new NearCacheConfiguration());
LruEvictionPolicy nearEvictionPolicy = new LruEvictionPolicy();
nearEvictionPolicy.setMaxSize(10);
nearConfiguration.setNearEvictionPolicy(nearEvictionPolicy);
{code}
'nearConfiguration' variable is undefined.
The right code should be:
{code}
nearConfiguration = new NearCacheConfiguration();
LruEvictionPolicy nearEvictionPolicy = new LruEvictionPolicy();
nearEvictionPolicy.setMaxSize(10);
nearConfiguration.setNearEvictionPolicy(nearEvictionPolicy);
cache1.setNearConfiguration(nearConfiguration);
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)