Skip to content

exception on naming a class "var" - #180

Merged
phax merged 2 commits into
phax:masterfrom
glelouet:class_type_novar
Jul 24, 2026
Merged

exception on naming a class "var"#180
phax merged 2 commits into
phax:masterfrom
glelouet:class_type_novar

Conversation

@glelouet

Copy link
Copy Markdown
Collaborator

"var" is no more allowed as a class name, though "Var" is.

New static check for type identifier in JJAvaName, tests. Doc for the check regarding the spec.

Tests required to make JDefinedclass constructors visible so package-protected instead of private/protected. Was not sure which one to use, so put them all.

Tests were made before the new code and were failing, validating that the constructor did allow to build jdefined class with name "var", though there may have been more complex checks somewhere else.

"var" is no more allowed as a class name, though "Var" is.

New static check for type identifier in JJAvaName, tests. Doc for the
check regarding the spec.

Tests required to make JDefinedclass constructors visible so
package-protected instead of private/protected. Was not sure which one
to use, so put them all.

Tests were made before the new code and were failing, validating that
the constructor did allow to build jdefined class with name "var",
though there may have been more complex checks somewhere else.
@glelouet
glelouet requested a review from phax July 24, 2026 11:05
@glelouet glelouet added patch patch-level change : no addition of feature, no breaking change. bug labels Jul 24, 2026
@phax
phax merged commit e14b4a7 into phax:master Jul 24, 2026
1 check passed
phax added a commit that referenced this pull request Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug patch patch-level change : no addition of feature, no breaking change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants