You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2022/08/24 15:24:26 UTC

[Bug 66238] New: Recorder setLogLevel() is useless due to the parameter type

https://bz.apache.org/bugzilla/show_bug.cgi?id=66238

            Bug ID: 66238
           Summary: Recorder setLogLevel() is useless due to the parameter
                    type
           Product: Ant
           Version: 1.10.12
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
          Assignee: notifications@ant.apache.org
          Reporter: robert.flaherty@oracle.com
  Target Milestone: ---

For setLogLevel() the current parameter type is VerbosityLevelChoices, which
just extends LogLevel, which has statics ERR/WARN/INFO/VERBOSE/DEBUG which are
of type LogLevel.  These statics can't be used because they are the wrong type
for this method.

I think things work now with Ant XML because of the EnumeratedAttribute which
sets through a different API.  I was trying to set this through a scriptdef
using the constants, which fails.

I think simply dumping VerbosityLevelChoices and changing setLogLevel() to take
LogLevel would be best.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 66238] Recorder setLogLevel() is useless due to the parameter type

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66238

Jaikiran Pai <ja...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
                 OS|                            |All
   Target Milestone|---                         |1.10.14

--- Comment #1 from Jaikiran Pai <ja...@apache.org> ---
A new method:

public void setLogLevel(final LogLevel level)

has now been introduced on org.apache.tools.ant.taskdefs.Recorder class.

This will be available in the upcoming Ant 1.10.14 release.

-- 
You are receiving this mail because:
You are the assignee for the bug.