JDK-8077822 : javac does not recognize '*.java' as file if '-J' option is specified
  • Type: Bug
  • Component: tools
  • Sub-Component: launcher
  • Affected Version: 8u31
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-04-15
  • Updated: 2015-09-29
  • Resolved: 2015-05-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 JDK 9
7u91Fixed 8u60Fixed 9 b66Fixed
Related Reports
Relates :  
Description
Full JRE/JDK Versions
---------------------
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

java version "1.7.0_76"
Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)
 

System Configuration
 --------------------
Windows 7 Professional (SP, Japanese, x64)

Testcase & Reproduction Instructions
------------------------------------

>type HelloWorld.java

public class HelloWorld {
        public static void main(String [] args){
                System.out.println("Hello World!");
        }
}

>C:\jdk8_31\jdk1.8.0_31\bin\javac -cp . -J-showversion -J-Duser.language=en  
*.java
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

javac: file not found: *.java
Usage: javac <options> <source files>
use -help for a list of possible options

Comments
Wildcard processing is done differently with a custom implementation as JDK7 see: http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/7af05e99ff0e You might want to set env variable _JAVA_LAUNCHER_DEBUG=true and execute the commands that will give you an insight of what is going on.
16-04-2015

Probably not a javac bug, but more like a launcher bug. Both -J processing and *.java expansion happen before javac is started. Reassigned to tools/launcher.
16-04-2015