incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Weßendorf (JIRA) <adffaces-iss...@incubator.apache.org>
Subject [jira] Assigned: (ADFFACES-21) Mis-ordering of statics un UIComponentUINode defeats logging/stacktraces
Date Thu, 15 Jun 2006 20:28:30 GMT
     [ http://issues.apache.org/jira/browse/ADFFACES-21?page=all ]

Matthias Weßendorf reassigned ADFFACES-21:
------------------------------------------

    Assign To: Matthias Weßendorf

> Mis-ordering of statics un UIComponentUINode defeats logging/stacktraces
> ------------------------------------------------------------------------
>
>          Key: ADFFACES-21
>          URL: http://issues.apache.org/jira/browse/ADFFACES-21
>      Project: MyFaces ADF-Faces
>         Type: Bug

>     Reporter: Ryan Williams
>     Assignee: Matthias Weßendorf
>     Priority: Minor
>  Attachments: static_ordering.patch
>
> In UIComponentUINode, the method _loadRenderertypeToLocalnameMap() uses a static AdfLogger
instance when it encounters certain failure conditions (such as a malformatted .properties
file).  Unfortunately, due to the ordering of the statics, the logger isn't instantiated yet
at the time of the call.   So, instead of safely logging the message and possibly continuing,
the application instead crashes with some of the weirdest errors known to man.
> The solution is simple: move the logger declaration/instantiation up above the method
that uses it.  I'll attach a patch that does this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message