pulumi / pulumi-java

Java support for Pulumi
Apache License 2.0
69 stars 21 forks source link

Fully qualify `java.lang` types in codegen #1400

Closed lunaris closed 1 month ago

lunaris commented 1 month ago

When generating code, it's entirely possible for us to encounter resources and functions with names that clash with those found in the Java standard library, such as String and Integer. We must therefore be careful to qualify standard names so that they are unambiguous in generated code. This commit fixes up a few gaps to this effect, ensuring that we emit e.g. java.lang.String and not just String when referring to Java's own types.