GoogleCloudPlatform / cloud-code-vscode

Cloud Code for Visual Studio Code: Issues, Documentation and more
Other
420 stars 112 forks source link

Apigee emulator should support the Java 11 for Java callout #852

Open pyonk opened 1 year ago

pyonk commented 1 year ago

Use case There is a description of the Java version that available for Java callout in the below link. https://cloud.google.com/apigee/docs/api-platform/reference/policies/java-callout-policy#what

Supported Java versions include: Oracle JDK 11 and OpenJDK 11

However, the Apigee emulator doesn't support Java 11. When I deployed some proxy that used Java callout compiled by Java version 11, I got the following error.

09/28/2023 10:52 AM EMULATOR ERROR Message: Failed to load java class xxx definition due to - xxx has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

I confirmed that the Apigee emulator version 1.10.2 doesn't support it. The latest version(1.10.3) doesn't work in my environment. https://github.com/GoogleCloudPlatform/cloud-code-vscode/issues/851

Feature Could you please support Java 11 for Java callout on the Apigee emulator?

shirishtrivikr commented 1 year ago

@pyonk Thank you for reporting the issue. Currently we have a technical limitation due to which the emulator run on Java 8, we are working on getting the emulator to be supported on Java 11.

luisgoncalves commented 7 months ago

Hi,

Any news on supporting Java 11 on the emulator? so that it is on-par with the actual cloud version.