You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Sven Bunge (JIRA)" <de...@myfaces.apache.org> on 2009/05/26 11:39:45 UTC
[jira] Created: (MFCOMMONS-8) EnumConverter can't fetch target
class automatically
EnumConverter can't fetch target class automatically
----------------------------------------------------
Key: MFCOMMONS-8
URL: https://issues.apache.org/jira/browse/MFCOMMONS-8
Project: MyFaces Commons
Issue Type: Bug
Components: myfaces-commons-converters
Environment: java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
myfaces-converters11 Version 1.0.0
Reporter: Sven Bunge
The EnumConverter can't get the Enum-Class if the Enum is public enum xyz {..} and not an anonymous inner enum.
Background:
http://bugs.sun.com/view_bug.do;jsessionid=1d047c12af80141dd0d9e71e102c?bug_id=6708424
Issue:
In line 71 of EnumConverter '} else if (value.getClass().isEnum()) {' only works with anonymous inner classes. Otherwise it is false and
'javax.faces.convert.ConverterException: No target class selected.' is thrown.
possible solution:
change 'getClass()' to 'getDeclaringClass()'. This works with public enums but must be checked for anonymous inner classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (MFCOMMONS-8) EnumConverter can't fetch target
class automatically
Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MFCOMMONS-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Volker Weber resolved MFCOMMONS-8.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.0.1-SNAPSHOT
> EnumConverter can't fetch target class automatically
> ----------------------------------------------------
>
> Key: MFCOMMONS-8
> URL: https://issues.apache.org/jira/browse/MFCOMMONS-8
> Project: MyFaces Commons
> Issue Type: Bug
> Components: myfaces-commons-converters
> Environment: java version "1.6.0_13"
> Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
> Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
> myfaces-converters11 Version 1.0.0
> Reporter: Sven Bunge
> Assignee: Volker Weber
> Fix For: 1.0.1-SNAPSHOT
>
>
> The EnumConverter can't get the Enum-Class if the Enum is public enum xyz {..} and not an anonymous inner enum.
> Background:
> http://bugs.sun.com/view_bug.do?bug_id=6708424
> Issue:
> In line 71 of EnumConverter '} else if (value.getClass().isEnum()) {' only works with anonymous inner classes. Otherwise it is false and
> 'javax.faces.convert.ConverterException: No target class selected.' is thrown.
> possible solution:
> change 'getClass()' to 'getDeclaringClass()'. This works with public enums but must be checked for anonymous inner classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.