Gosu case sensitivity

Guidewire code is case sensitive. Access existing types exactly as they are declared, including correct capitalization. For example, if a type is declared as MyClass, you cannot refer to it as myClass or myclass. Use the Gosu editor’s code completion feature to enter the names of types and properties correctly.

To assist you, Studio highlights issues with case sensitivity.

The following table lists conventions for capitalization of various Gosu language elements:

Language element

Standard capitalization

Example

Gosu keywords

Always specify Gosu keywords correctly, typically lowercase.

if

Type names, including class names

Uppercase first character

DateUtil

Claim

Local variable names

Lowercase first character

myClaim

Property names

Uppercase first character

CarColor

Method names

Lowercase first character

printReport

Package names

Lowercase all letters in packages and subpackages

com.mycompany.*