[
https://issues.apache.org/jira/browse/CAMEL-21953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-21953:
--------------------------------
Fix Version/s: 4.12.0
4.10.4
4.8.7
> camel-groovy: GroovyLanguage.stop may throw UnsupportedOperationException
> -------------------------------------------------------------------------
>
> Key: CAMEL-21953
> URL: https://issues.apache.org/jira/browse/CAMEL-21953
> Project: Camel
> Issue Type: Bug
> Components: camel-groovy
> Reporter: James Netherton
> Priority: Minor
> Fix For: 4.12.0, 4.10.4, 4.8.7
>
>
> GroovyLanguage.stop attempts to clear its script cache:
> [https://github.com/apache/camel/blob/80ee23a2bc408ae959664f240ee63edac5248723/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/GroovyLanguage.java#L86]
> However, if the builder was used to configure GroovyLanguage, the cache will
> be an unmodifiable Map. Which causes an UnsupportedOperationException when
> .clear() is invoked.
> [https://github.com/apache/camel/blob/80ee23a2bc408ae959664f240ee63edac5248723/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/GroovyLanguage.java#L194-L204]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)