<resending to list>

On 8/11/2013 7:48 PM, mikhail cherkasov wrote:
Hi David,

I'm trying to build jdk7u-cpu as I can see File.java hasn't been changed
for long time, so everyone should have the same error.
Also I attached a full log. May I have some mistake in environment
configuration?

If the file hasn't changed then it must be that the javac used is a newer one that produces this warning; or a warning flag has been enabled that isn't normally.

Your build log is full of clock skew warnings so things may be getting compiled out of order and with the wrong javac options being applied. You need to fix that first and see what happens with a regular build.

David



Thanks,
Mikhail.

On 08.11.2013 4:14, David Holmes wrote:
Hi Mikhail,

On 8/11/2013 8:00 AM, mikhail cherkasov wrote:
Hi all,

I have the following error:

c:/jdk/jdk1.6.0_18/bin/java -XX:-PrintVMOptions
-XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -client -Xmx512m
-Xms512m -XX:PermSize=32m -XX:MaxPermSize=160m
-Xbootclasspath/p:C:/ws/jdk7/jdk7u-cpu/build/windows-i586/langtools/dist/bootstrap/lib/javac.jar

-jar
C:/ws/jdk7/jdk7u-cpu/build/windows-i586/langtools/dist/bootstrap/lib/javac.jar

-g -Xlint:all -Werror -source 7 -target 7 -encoding ascii
-Xbootclasspath:C:/ws/jdk7/jdk7u-cpu/build/windows-i586/classes
-sourcepath
../../../../src/closed/windows/classes;../../../../src/closed/share/classes;C:/ws/jdk7/jdk7u-cpu/build/windows-i586/gensrc;../../../../src/windows/classes;../../../../src/share/classes

-d C:/ws/jdk7/jdk7u-cpu/build/windows-i586/classes
@C:/ws/jdk7/jdk7u-cpu/build/windows-i586/tmp/sun/sun.rmi/.classes.list.filtered


..\..\..\..\src\share\classes\java\io\File.java:2126: warning: [static]
static variable should be qualified by type name, File, instead of by an
expression
         s.writeChar(this.separatorChar); // Add the separator character
                         ^
error: warnings found and -Werror specified
1 error
1 warning

Could someone help me with this?

As it says this.separatorChar should be File.separatorChar. Java has
always permitted (incorrectly in my view) access to static members via
references to instances, but now javac is warning about that as it
should be phased out.

David

Thanks,
Mikhail.

Reply via email to