Java Module Release Notes - Mule 4

Support Category: Select

Use the Java module to invoke Java code.

1.2.13

March 25, 2024

Compatibility

Application/Service Version

Mule

4.1.1 and later

OpenJDK

8, 11, and 17

Fixed Issues

Issue Resolution ID

The spring-core library is upgraded to version 5.3.33 to address reported security vulnerabilities.

W-15194448

1.2.12

December 12, 2023

What’s New

  • This connector is now compatible with Java 17.

Compatibility

Application/Service Version

Mule

4.1.1 and later

OpenJDK

8, 11, and 17

1.2.11

June 21, 2023

Compatibility

Application/Service Version

Mule

4.1.1 and later

Fixed Issues

Issue Resolution ID

The spring-core library is upgraded to version 5.3.28 to address reported security vulnerabilities.

W-13622235

1.2.10

June 28, 2022

What’s New

  • Upgraded versions of dependencies.

Compatibility

Application/Service

Version

Mule

4.1.1 and later

1.2.9

August 17, 2021

What’s New

  • Optimized the connector to improve its overall stability and performance. (JM-35)

Compatibility

Application/Service

Version

Mule

4.1.1 and later

1.2.8

April 8, 2021

Features

None.

Fixed Issues

  • Removed dependencies included in the Mule runtime engine to avoid warning messages during startup (JM-34)

1.2.7

November 4, 2020

Features

None.

Fixed Issues

  • Upgraded Spring version to 5.3.0 (JM-31)

1.2.6

December 9, 2019

Features

None.

Fixed Issues

  • Wrong OutputType for a method that returns a java.lang.Object type. (JM-14)

  • MUnit tests for metadata validation. (MU-1529)

  • Upgrade mule-extensions-parent, mule-core-modules-parent and mule-ee-core-modules-parent to 1.1.6. (MULE-17121)

  • Upgrade MUnit version to 2.2.1. (MULE-17301)

1.2.5

August 14, 2019

Features

  • Change execution pool to CPU_LITE for new instance operations. (MULE-17326)

  • Change execution pool to IO for invoke operations. (MULE-17329)

Fixed Issues

None.

1.2.4

May 30, 2019

Features

None.

Fixed Issues

  • Java module fails to invoke method that receives Optional<Pojo> (MULE-16932)

1.2.3

May 29, 2019

Features

None.

Fixed Issues

  • Java module fails to transform null into an empty Optional. (MULE-16918)

1.2.2

April 26, 2019

Features

None.

Fixed Issues

  • Upgrade Spring to 5.1.6.

  • Upgrade Apache Commons Lang to 3.8.1.

1.2.1

January 14, 2019

Features

  • Fixed an issue with invoking a method from a class that implements an interface with generics. This would produce a warning that there were multiple methods found that match the provided method.

Fixed Issues

  • JavaModule: no longer throws WARN messages with Generic interface implementation. (MULE-16316)

1.2.0

September 6, 2018

Features

  • It’s now possible to configure the Output MimeType of the Invoke and Invoke Static Operations.

  • Improved error handling, the connector used to not show the real error that occurred when executing Java methods.

  • New functions getRootCause and isCausedBy are now available to introspect Throwables.

  • In the extreme case where two parameters have the same simple name, such as some.Pojo and other.Pojo the full qualifier name can be used to avoid issues.

Fixed Issues

  • JavaModule: Support output MimeType parameter for runtime inference. (MULE-15283)

  • Java Module: Improve Error cause propagation. (MULE-15540)

  • Java Module: does not propagate execution error. (MULE-15262)

  • Java Module invokeStatic declares an error that is never thrown. (MULE-15461)

  • JavaModule: Support full qualifier name for parameter types to identify methods. (MULE-15009)

  • Migrate JavaModule tests to MTF. (MULE-15076)

  • Java Module: improve method not found error message. (MULE-15263)

  • Java Module: 'new' operation does not declare INVOCATION error. (MULE-15538)

  • Java Module: Fail to extract exception cause with default value. (MULE-15597)

1.1.2

August 14, 2019

Features

  • Provide proper classloading error information. (MULE-14938)

  • Improve error messages and exception propagation. (MULE-15263)

  • Change execution pool to CPU_LITE for new instance operations. (MULE-17326)

  • Change execution pool to IO for invoke operations. (MULE-17329)

Fixed Issues

  • InvokeStatic declares an error that is never thrown. (MULE-15461)

1.1.1

May 11, 2018

Minimum Mule Version

Mule 4.1.0

Features

  • Fixed an issue that made it impossible to pass null as a parameter.

  • Now when the arguments are passed by with their canonical name (arg0, arg1, etc.), parameter matching will be done by position.

Fixed Issues

  • JavaModule: Do best effort to do invocation with arg0, arg1…​ (MULE-15008)

  • null values causes Exception in parameterNeedsTransformation. (MULE-14990)

1.1.0

May 7, 2018

Minimum Mule Version

Mule 4.1.0

Features

  • When argument types don’t match the java function arguments, a best effort will be done to transform these arguments.

Fixed Issues

  • Java module doesn’t transform the arguments. (MULE-14861)

1.0.1

March 23, 2018

Minimum Mule Version

Mule 4.1.0

Features

  • Fixed an issue that happened when calling static methods from different classes with the same signature.

Fixed Issues

1.0.0

January 23, 2018

Minimum Mule Version

Mule 4.1.0