-
Bug
-
Resolution: Won't Fix
-
P5
-
None
-
1.1.6, 5.0, 6
-
generic, x86
-
generic, windows_nt, windows_xp
Name: tb29552 Date: 11/16/98
/*
This might be known already. But I couldn't find in the
bug search. If one use the word "Con" as a name for a
class, the JDK compiler produces the byte code, and
dumps to the screen, instead of creating a file
"Con.class". Appearantly, it misinterprets the class
name as Console or something.
*/
class Con {
public static void outputMessage() {
System.out.println("java.version = " +
System.getProperty("java.version"));
System.out.println("Operating System Name = " +
System.getProperty("os.name"));
System.out.println("Operating system architecture = " +
System.getProperty("os.arch"));
System.out.println("Operating system version = " +
System.getProperty("os.version") + "\n");
}
public static void main(String[] args) {
outputMessage();
}
}
(Review ID: 42799)
======================================================================
/*
This might be known already. But I couldn't find in the
bug search. If one use the word "Con" as a name for a
class, the JDK compiler produces the byte code, and
dumps to the screen, instead of creating a file
"Con.class". Appearantly, it misinterprets the class
name as Console or something.
*/
class Con {
public static void outputMessage() {
System.out.println("java.version = " +
System.getProperty("java.version"));
System.out.println("Operating System Name = " +
System.getProperty("os.name"));
System.out.println("Operating system architecture = " +
System.getProperty("os.arch"));
System.out.println("Operating system version = " +
System.getProperty("os.version") + "\n");
}
public static void main(String[] args) {
outputMessage();
}
}
(Review ID: 42799)
======================================================================
- duplicates
-
JDK-6241975 Warn about class files with names as CON, COMx, LPTx, PRN, AUX, and NUL
- Closed
- relates to
-
JDK-6176051 File.isFile() should return "false" for "con" on windows platform
- Closed
-
JDK-5043449 File.createNewFile() succeeds for reserved words and no File exists (win)
- Closed
-
JDK-8006973 jtreg test fails: test/tools/javac/warnings/AuxiliaryClass/SelfClassWithAux.java
- Closed