[vwnc] [Bug][vw76] SystemUtils class>>validateName: accepts illegal names

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] [Bug][vw76] SystemUtils class>>validateName: accepts illegal names

Joachim Geidel
SystemUtils class>>validateName: is used for checking names for illegal
characters, e.g. for bundle and class names. However, it accepts names
starting with a digit, and all-digit names. AFAIK, these are not legal names
for classes and methods. It may be different for packages and bundles, as
these are not part of the Smalltalk language.

Test case:
    LiteralBindingReference pathString: '1.2.3'
should raise an error.

Best regards,
Joachim Geidel


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] [Bug][vw76] SystemUtils class>>validateName: accepts illegalnames

Andres Valloud-6
AR 54585...

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On
Behalf Of Joachim Geidel
Sent: Friday, June 13, 2008 9:27 AM
To: VWNC List
Subject: [vwnc] [Bug][vw76] SystemUtils class>>validateName: accepts
illegalnames

SystemUtils class>>validateName: is used for checking names for illegal
characters, e.g. for bundle and class names. However, it accepts names
starting with a digit, and all-digit names. AFAIK, these are not legal
names for classes and methods. It may be different for packages and
bundles, as these are not part of the Smalltalk language.

Test case:
    LiteralBindingReference pathString: '1.2.3'
should raise an error.

Best regards,
Joachim Geidel


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc