Uploaded image for project: 'Log Tool'
  1. Log Tool
  2. LOGTOOL-33

Validation of message types fails for out-of-order types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.CR3
    • 1.0.0.CR2
    • None

      From Infinispan:

      @LogMessage(level = WARN)
      @Message(value = "Error committing cache view %2$d for cache %1$s", id = 169)
      void cacheViewCommitFailure(@Cause Exception e, String cacheName, int committedViewId);
      
      Log.java:797: Invalid format for 'Error committing cache view %2$d for cache %1$s' with parameters '[33, JBoss]'. java.util.Formatter Error: d != java.lang.String
      

      I think the log message is correct, and the validator should not prevent this from being used.
      I've a test case ready in a pull request I'm sending now.

            jperkins-rhn James Perkins
            sgrinove Sanne Grinovero
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: