Open lazau-g opened 4 years ago
Hey thanks for catching this. I'm going to look into adding instructions for switching the Java version this weekend.
A more advanced solution would be to play with default configurations at the gsuite level. I don't have any experience with that though, so I'm going to focus on the low-tech solution for now.
Instructions in the top level README.md as well as in walkthroughs/week-0-setup/intro-walkthrough.md and elsewhere indicate that Google Cloud Shell is the recommended environment to go through the program.
It seems the program walkthrough uses Java 8 (as seen in all pom.xml files) - however Google Cloud Shell uses Java 11 as the default, despite documentation http://cloud/shell/docs/how-cloud-shell-works#language_support indicating otherwise. [Repro: Go to Google Cloud Shell, run 'java --version'].
Java 11 causes issues with some examples. I have found one, but there may be more
The example at walkthroughs/week-3-libraries/blobstore/examples/hello-world/ yields the following error when running under Java 11
--
Another minor issue: when following the instructions in http://cloud/shell/docs/how-cloud-shell-works#language_support to switch to Java 8 gives the following output
The output suggests that the change to Java 8 failed, but in fact it succeeded
I realize this issue isn't entirely caused by the code/repo, but I wanted to document it so that people following along can have a reference point.