[jOOQ/jOOQ#10867] KotlinGenerator should quote identifiers containing $
This commit is contained in:
parent
b904956211
commit
41e1949d27
@ -385,6 +385,10 @@ class GenerationUtil {
|
||||
return "`" + literal + "`";
|
||||
else if (language == KOTLIN && i == 0 && !Character.isJavaIdentifierStart(c))
|
||||
return "`" + literal + "`";
|
||||
|
||||
// [#10867] The $ character is not allowed in Kotlin unquoted identifiers
|
||||
else if (language == KOTLIN && c == '$')
|
||||
return "`" + literal + "`";
|
||||
else
|
||||
sb.append(c);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user