Details
-
Type:
Enhancement
-
Status: Closed
-
Priority:
P5
-
Resolution: Won't Fix
-
Affects Version/s: 5.0
-
Fix Version/s: None
-
Component/s: tools
-
Labels:
-
Subcomponent:
-
CPU:itanium
-
OS:windows_2000
Description
A DESCRIPTION OF THE REQUEST :
I developed a smaple program having a subclass and if the subclass was named Con the java compiler never compiles the file, instead it spits the bytecode of the program itself in advance . I have to get a .class for atleast the used parent class.
JUSTIFICATION :
Suppose if any one tries to Develop as Connection class in JDBC some may try to use a short name as Con (say) . At that juncture the compiler has to help the programmer telling this iis either a bug or a thing which is never allowed.
EXPECTED -
i would like to see a .class in the name of the parent class wihich is not named as Con.
ACTUAL -
I cannot see a Con.class file generated
---------- BEGIN SOURCE ----------
class NewVersion
{
public static void main(String[] args)
{
new NewVersion();
Con c=new Con();
c.myprint();
}
}
class Con extends NewVersion
{
public void myprint()
{
System.out.println("Its Inside Stuff in Java");
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
it is the matter of the complier which finds out the available class name and stops compiler . May be the the compiler has to be fine tune or the microsoft(useless) Naming convention in its O.S has to be changed
###@###.### 2004-12-16 16:01:47 GMT
I developed a smaple program having a subclass and if the subclass was named Con the java compiler never compiles the file, instead it spits the bytecode of the program itself in advance . I have to get a .class for atleast the used parent class.
JUSTIFICATION :
Suppose if any one tries to Develop as Connection class in JDBC some may try to use a short name as Con (say) . At that juncture the compiler has to help the programmer telling this iis either a bug or a thing which is never allowed.
EXPECTED -
i would like to see a .class in the name of the parent class wihich is not named as Con.
ACTUAL -
I cannot see a Con.class file generated
---------- BEGIN SOURCE ----------
class NewVersion
{
public static void main(String[] args)
{
new NewVersion();
Con c=new Con();
c.myprint();
}
}
class Con extends NewVersion
{
public void myprint()
{
System.out.println("Its Inside Stuff in Java");
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
it is the matter of the complier which finds out the available class name and stops compiler . May be the the compiler has to be fine tune or the microsoft(useless) Naming convention in its O.S has to be changed
###@###.### 2004-12-16 16:01:47 GMT
Attachments
Issue Links
- relates to
-
JDK-6241975 Warn about class files with names as CON, COMx, LPTx, PRN, AUX, and NUL
-
- Closed
-
-
JDK-8006973 jtreg test fails: test/tools/javac/warnings/AuxiliaryClass/SelfClassWithAux.java
-
- Closed
-