United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6474281 : why do we have a class named 'sparc' when it seems to be a special keyword?

Details
Type:
Bug
Submit Date:
2006-09-22
Status:
Closed
Updated Date:
2012-10-08
Project Name:
JDK
Resolved Date:
2006-11-14
Component:
hotspot
OS:
solaris,generic
Sub-Component:
runtime
CPU:
sparc,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6,7
Fixed Versions:
hs10 (b03)

Related Reports
Backport:
Backport:
Duplicate:

Sub Tasks

Description
If you compile to a .i file in the jvmg build directory and try to use CC on the .i file the 'sparc' keyword reappears and you get compilation errors, which makes it hard to diagnose problems in the CC compilers.

I don't see any reason for the naming of this class sparc instead of 'Sparc' which is actually our naming convention (first letter uppercase in class names).

                                    

Comments
EVALUATION

Changed name to "Sparc" which is our naming convention for classes (leading uppercase character) which is not a predefined macro.
                                     
2006-10-06
EVALUATION

Fixed 6474281 Rename class sparc to class Sparc

'sparc' appears to be a predefined macro with the sparcWorks tools which makes
debugging compiler problems by creating a preprocessor output file not
work.
                                     
2006-10-10



Hardware and Software, Engineered to Work Together