Consider supporting JEP 445
@janell-chen is already working on this.
Since Jun 6, 2023.
Assessment
This issue has not been assessed yet.
Description
JEP 445 (Preview in JDK 21) introduces unnamed classes and instance main methods. This could be a boon to writing functions if done right changing our result from this:
package com.example;
import com.google.cloud.functions.HttpFunction;
import com.google.cloud.functions.HttpRequest;
import com.google.cloud.functions.HttpResponse;
public class HelloWorld implements HttpFunction {
@Override
public void service(HttpRequest request, HttpResponse response)
throws Exception {
response.getWriter().write("Hello, World\n");
}
}
To something like this:
import com.google.cloud.functions.FuncFramework;
void main() {
FuncFramework.http((req, res) -> response.getWriter().write("Hello, World\n"));
}
- Dominant language
- Java
- Stars
- 154
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GoogleCloudPlatform/functions-framework-java
-
enhancement P2
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
enhancement
GoogleCloudPlatform/functions-framework-java#375 · 1 comment · 1 reaction · 1 assignee ·
-
enhancement P2
Difficulty 5/5 Over a week Newbie friendliness 30/100
GoogleCloudPlatform/functions-framework-java#372 · 1 comment ·
-
enhancement P3
GoogleCloudPlatform/functions-framework-java#261 · 1 assignee ·
-
How to run `google/fhir-data-pipes/pipelines/batch` uber JAR in Google Cloud Functions locally? OpenP3 question
Difficulty 4/5 3-5 days Newbie friendliness 35/100
GoogleCloudPlatform/functions-framework-java#254 · 1 comment ·
All issues in GoogleCloudPlatform/functions-framework-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100