Warning without cleanbuild
Alan Bateman
Alan.Bateman at oracle.com
Mon Aug 22 09:10:23 UTC 2011
Sebastian Sickelmann wrote:
> Hi,
>
> i sometimes get this warning if i don't execute a "make clean" before
> my "make all" in jdk repository.
>
> /home/sebastian/deve/openjdk8/build/linux-i586/j2sdk-image/bin/javac
> -J-XX:ThreadStackSize=768 -J-XX:-PrintVMOptions
> -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-client
> -J-Xmx512m -J-Xms512m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m
> -Werror -Xlint:all -Xlint:-path -source 7 -target 7 -encoding ascii
> -Xbootclasspath:../../../build/linux-i586/classes -sourcepath
> ../../../build/linux-i586/gensrc:../../../src/solaris/classes:../../../src/share/classes
> -d ../../../build/linux-i586/classes
> @../../../build/linux-i586/tmp/java/java.nio/nio/.classes.list.filtered
> ../../../src/solaris/classes/sun/nio/ch/InheritedChannel.java:169:
> warning: [rawtypes] found raw type: Constructor
> Constructor ctr =
> Reflect.lookupConstructor("java.io.FileDescriptor",
> ^
> missing type arguments for generic class Constructor<T>
> where T is a type-variable:
> T extends Object declared in class Constructor
> error: warnings found and -Werror specified
We had an intern in Oracle this summer doing excellent work to address
warnings that javac reports when compiling with -Xlint:all. The approach
was to clean-up all warnings in an area and then change the make file
for the area to add -Xlint:all -Werror so that we keep the area warning
free. In this case it looks like one raw type in one source file was
missed. Missed because it's compiled implicitly when doing a full build.
However when compiled with make/java/nio/Makefile then it's compiling
with -Xlint:all -Werror. I've created 7081796 to track this and we
should have the fix in jdk8/tl/jdk today.
-Alan.
More information about the build-dev
mailing list