You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexey Kuznetsov (JIRA)" <ji...@apache.org> on 2015/12/21 13:26:46 UTC

[jira] [Resolved] (IGNITE-2214) Incorrect java-code for near configuration

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

Alexey Kuznetsov resolved IGNITE-2214.
--------------------------------------
    Resolution: Fixed
      Assignee: Pavel Konstantinov  (was: Alexey Kuznetsov)

Fixed. Please test.

> 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
>            Assignee: 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)