-
Bug
-
Resolution: Fixed
-
P1
-
5.0
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2201061 | 5.0u17 | Sunita Koppar | P5 | Resolved | Fixed | b01 |
JDK-2201060 | 5.0u16-rev | Sunita Koppar | P5 | Resolved | Fixed | b03 |
JDK-2121634 | 5.0u15-rev | Sunita Koppar | P5 | Closed | Fixed | b13 |
Compiling package-info.java gives this error:
E:/ws/hostd/bora/vim/vmodl/vim/host/package-info.java:4: package annotations
should be in file package-info.java
@wsdlName("Host") package vim.host;
The file looks like this:
@wsdlName("Host") package vim.host;
import vmodl.*;
Addtional info from submitter:
I was able to reproduce the problem on WindowsXP using your files.
My command line was:
javac C:/home/pcanning/wsdlName.java
C:/home/pcanning/package-info.java
It is important that the slashes be forward slashes not backward slashes.
If I do
javac C:\home\pcanning\wsdlName.java
C:\home\pcanning\package-info.java
or
javac wsdlName.java package-info.java
I don't get the error.
--- package-info.java ---
@wsdlName("Host") package vim.host;
import vmodl.*;
--- wsdlName.java ---
package vmodl;
public @interface wsdlName { String value(); }
E:/ws/hostd/bora/vim/vmodl/vim/host/package-info.java:4: package annotations
should be in file package-info.java
@wsdlName("Host") package vim.host;
The file looks like this:
@wsdlName("Host") package vim.host;
import vmodl.*;
Addtional info from submitter:
I was able to reproduce the problem on WindowsXP using your files.
My command line was:
javac C:/home/pcanning/wsdlName.java
C:/home/pcanning/package-info.java
It is important that the slashes be forward slashes not backward slashes.
If I do
javac C:\home\pcanning\wsdlName.java
C:\home\pcanning\package-info.java
or
javac wsdlName.java package-info.java
I don't get the error.
--- package-info.java ---
@wsdlName("Host") package vim.host;
import vmodl.*;
--- wsdlName.java ---
package vmodl;
public @interface wsdlName { String value(); }
- backported by
-
JDK-2201060 package-info.java: Weird compiler error
- Resolved
-
JDK-2201061 package-info.java: Weird compiler error
- Resolved
-
JDK-2121634 package-info.java: Weird compiler error
- Closed
- relates to
-
JDK-6278523 Retain javac case sensitivity semantics on Windows
- Closed
-
JDK-6196068 Class.forName throws NoClassDefFoundError on miscapitalized classname
- Closed
-
JDK-6201304 Compiler error ignored (package-info.java)
- Closed
(1 relates to)