[ 
https://issues.apache.org/jira/browse/IGNITE-2214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pavel Konstantinov closed IGNITE-2214.
--------------------------------------
    Assignee:     (was: Pavel Konstantinov)

Tested.

> Incorrect java-code for near configuration
> ------------------------------------------
>
>                 Key: IGNITE-2214
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2214
>             Project: Ignite
>          Issue Type: Sub-task
>          Components: wizards
>            Reporter: Pavel Konstantinov
>             Fix For: 1.6
>
>
> Here is the currently generated java-code is:
> {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}
>  NearCacheConfiguration 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)

Reply via email to