You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2017/09/06 08:41:00 UTC
[jira] [Commented] (SLING-7109) Classloader not updated when bundle
is updating
[ https://issues.apache.org/jira/browse/SLING-7109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16155009#comment-16155009 ]
Carsten Ziegeler commented on SLING-7109:
-----------------------------------------
I've updated the implementation to also refresh the classloader if a bundle is used and updated. Added a test case to verify the behaviour
> Classloader not updated when bundle is updating
> -----------------------------------------------
>
> Key: SLING-7109
> URL: https://issues.apache.org/jira/browse/SLING-7109
> Project: Sling
> Issue Type: Bug
> Components: Commons
> Affects Versions: Commons ClassLoader 1.4.0
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Fix For: Commons ClassLoader 1.4.2
>
>
> The class loader is not updated/refreshed if a bundle is updated.
> Imagine the following use case:
> A jsp is compiled. It has an import to an existing class, however it is using a field in that class which does not exist. This creates a compilation problem. However from the pov of the classloader everything is fine as the class exists.
> Now the bundle is updated and the class in question contains the field. However, the classloader is not refreshed/updated and therefore the jsp compilation still fails.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)