[
https://issues.apache.org/jira/browse/MYFACES-3549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280901#comment-13280901
]
Jesús Pérez Alcaide (ISBAN) commented on MYFACES-3549:
------------------------------------------------------
The supposition that you do in your previous comment [0] is incorrect.
If you put the 2 versions of the library associated with the server (and
therefore available to all applications deployed on that server), both
applications will use the same version of the library, and this version will be
the one that is found first in the Classpath. This scenario is invalid if you
want to use different versions of the same library in different applications.
If you put each version of the library associated with each application (for
example, in their WEB-INF/lib directory), then each application will use only
their version of the library, because each application uses a different
ClassLoader. See [1].
In this second scenario, 2 classes loaded from different ClassLoader *are not
equal* [2], although these classes have the same name. Therefore, the map will
have two entries, one for each class loaded from each ClassLoader, and then it
does not exist the problem you mentioned.
[0]
https://issues.apache.org/jira/browse/MYFACES-3549?focusedCommentId=13280786&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13280786
[1] http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html
[2]
http://docs.oracle.com/javase/specs/jvms/se5.0/html/ConstantPool.doc.html#78621
> Alternative solution to bugs MYFACES-3262 and MYFACES-3510
> ----------------------------------------------------------
>
> Key: MYFACES-3549
> URL: https://issues.apache.org/jira/browse/MYFACES-3549
> Project: MyFaces Core
> Issue Type: Improvement
> Affects Versions: 2.1.7
> Reporter: Jesús Pérez Alcaide (ISBAN)
> Attachments: AAA_patch_PropertyDescriptor_MyFaces217.jar,
> MYFACES-3549-fix-hard-reference-map.patch,
> MyFaces3262_PropertyDescriptorHolder.patch,
> MyFaces3510_AbstractFacesInitializer.patch,
> MyFaces3510_ComponentAttributesMap.patch
>
>
> I would like to propose an alternative solution to bugs MYFACES-3262 and
> MYFACES-3510, which consists in rollback the changes made in MYFACES-3510 and
> modify the solution given in MYFACES-3262 by adding a soft reference to the
> methods held in the class _PropertyDescriptorHolder.
> This alternative solution fixes MYFACES-3262 and avoids the performance loss
> caused by MYFACES-3510.
> More information in this email:
> http://markmail.org/message/xh66wlte6luqn63d
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira