Steps to reproduce: 1. Have an application that uses a properties configurator 2. Specify a level NOTICE#java.lang.Object in the properties 3. Start the application Expected behaviour: - A message explaining that a class function with the signature "toLevel(String,Level)" must exist. Actual behaviour: - The following output: log4j:WARN custom level class [java.lang.Object] does not have a constructor which takes one string parameter java.lang.NoSuchMethodException: java.lang.Object.toLevel(java.lang.String, org.apache.log4j.Level) This is witnessed with the actual code from SVN (revision 378256).
Created attachment 17713 [details] Patch for bug 38680 Attached is a proposed patch.
Applied in SVN trunk
Committed by Elias in rev 38680 against log4j/trunk. Also present in log4j 1.2.x. Likely the message is a hold-over from an earlier implementation that actually used a constructor. Could be considered for back-porting.
Committed against log4j 1.2 rev 509804.