uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Burn Lewis <burnle...@gmail.com>
Subject Re: Failed tests: testLogWrapperCreation(org.apache.uima.util.impl.JSR47Logger_implTest) - Oracle Java 7
Date Thu, 18 Oct 2012 17:33:04 GMT
Very strange ... that line in my source is:
    Assert.assertTrue(uimaLogger.isLoggable(Level.INFO));
The code that converts from the UIMA level values to the Java ones looks
fine ... perhaps your build has picked up some other logger class?  I added
the following after line 223 in org.apache.uima.util.impl
JSR47Logger_impl.java

    System.out.println("!! " + logger.getClass().getName() +":isLoggable:
UIMA level = " + level + " = " + level.toInteger() +
            " jsr47Level = " + jsr47Level + " = " + jsr47Level.intValue() +
" -> " + logger.isLoggable(jsr47Level));

and ran the testLogWrapperCreation test to get:

!! java.util.logging.Logger:isLoggable: UIMA level = INFO = 50000
jsr47Level = INFO = 800 -> true

Perhaps you could try something similar and see why this simple test fails.

~Burn

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message