Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-5512

Code in documentation differ with code on github

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Trivial
    • None
    • 7.2.1.Final
    • None
    • None
    • Documentation (Ref Guide, User Guide, etc.), Interactive Demo/Tutorial

    Description

      Code in documentation:

      EmbeddedCacheManager cm = new DefaultCacheManager("infinispan.xml");
      Cache<Object, Object> cache1 = cm.getCache("replSyncCache");
      Cache<Object, Object> cache2 = cm.getCache("replAsyncCache");
      Cache<Object, Object> cache3 = cm.getCache("invalidationSyncCache");

      Code on GitHub

      public static void main(String[] args) throws Exception {
      boolean useXmlConfig = false;
      String cache = "repl";
      String nodeName = null;

      for (String arg : args) {
      switch (arg)

      { case "-x": useXmlConfig = true; break; case "-p": useXmlConfig = false; break; case "-d": cache = "dist"; break; case "-r": cache = "repl"; break; default: nodeName = arg; break; }

      }
      new Node(useXmlConfig, cache, nodeName).run();
      }
      ...
      ...
      public void run() throws IOException, InterruptedException {
      EmbeddedCacheManager cacheManager = createCacheManager();
      final Cache<String, String> cache = cacheManager.getCache(cacheName);

      Attachments

        Activity

          People

            mvrabel_jira Martin Vrabel (Inactive)
            mvrabel_jira Martin Vrabel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: