Quote:
Originally Posted by de_
(appears to be) Resolved
Changed the name of the class from 1310Robot to T1310Robot (as well as file name and project name) and now it compiles. From this I can only conclude Java must not allow class names starting with numerics and the compiler does not have an error message that reflects that. The error message it put out was highly misleading. Ouch.
|
Yup, thats correct. And the error message is technically meaningful since 1310Robot isn't a valid identifier, its just not specific as to why.
The rules for java naming are:
Start with a letter, underscore, or dollar sign
After that, anything but spaces and special chars
Case sensitive
Can't use a keyword (like class or public)
(Paraphrased from
http://mathbits.com/mathbits/java/Da...amingrules.htm)
Oliver