jtreg regressions around deprecated warning

Dalibor Topic robilad at kaffe.org
Thu Jul 19 15:12:18 PDT 2007


Hi all,

I've ran jtreg on the current javac sources with the latest java 6
binary from sun for x86-linux, and I'm seeing 12 failed regression
tests, that all look a bit like this one:

==snip==

#Test Results (version 2)
#Thu Jul 19 18:32:14 CEST 2007
#checksum:5d07645553e1f00b
#-----testdescription-----
$file=/home/topic/gsoc/work/openjdk/j2se/src/share/opensource/javac/test/tools/javac/mandatoryWarnings/deprecated/Test.java
$root=/home/topic/gsoc/work/openjdk/j2se/src/share/opensource/javac/test/tools/javac
id=id13
keywords=bug5047307
run=USER_SPECIFIED compile/ref=Test4d.out -XDstdout -XDrawDiagnostics
-nowarn -Xlint:deprecation -Xmaxwarns 3 A.java B.java\n
source=Test.java
title=javac -nowarn improperly suppresses JLS-mandated warnings

#-----environment-----

#-----testresult-----
description=file:///home/topic/gsoc/work/openjdk/j2se/src/share/opensource/javac/test/tools/javac/mandatoryWarnings/deprecated/Test.java#id13
end=Thu Jul 19 18:32:14 CEST 2007
environment=regtest
execStatus=Failed. Output does not match reference file: Test4d.out, line 1
javatestOS=Linux 2.6.22-8-generic (i386)
javatestVersion=3.2.2_02
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages compile
start=Thu Jul 19 18:32:14 CEST 2007
test=mandatoryWarnings/deprecated/Test.java#id13
work=/home/topic/gsoc/work/openjdk/j2se/src/share/opensource/javac/build/jtreg/work/mandatoryWarnings/deprecated

#section:script_messages
----------messages:(4/188)----------
JDK under test: (/usr/lib/jvm/java-6-sun-1.6.0.02)
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode)

#section:compile
----------messages:(3/486)----------
command: compile -XDstdout -XDrawDiagnostics -nowarn -Xlint:deprecation
-Xmaxwarns 3
/home/topic/gsoc/work/openjdk/j2se/src/share/opensource/javac/test/tools/javac/mandatoryWarnings/deprecated/A.java 

/home/topic/gsoc/work/openjdk/j2se/src/share/opensource/javac/test/tools/javac/mandatoryWarnings/deprecated/B.java
reason: User specified action: run compile/ref=Test4d.out -XDstdout
-XDrawDiagnostics -nowarn -Xlint:deprecation -Xmaxwarns 3 A.java B.java
elapsed time (seconds): 0.417
----------System.out:(5/562)----------
A.java:10:9: compiler.warn.has.been.deprecated: A1, compiler message
file broken: key=compiler.misc.unnamed.package arguments={0}, {1}, {2},
{3}, {4}, {5}, {6}, {7}
A.java:10:21: compiler.warn.has.been.deprecated: A1, compiler message
file broken: key=compiler.misc.unnamed.package arguments={0}, {1}, {2},
{3}, {4}, {5}, {6}, {7}
B.java:11:9: compiler.warn.has.been.deprecated: B1, compiler message
file broken: key=compiler.misc.unnamed.package arguments={0}, {1}, {2},
{3}, {4}, {5}, {6}, {7}
- compiler.note.deprecated.filename.additional: B.java
3 warnings
----------System.err:(0/0)----------
result: Failed. Output does not match reference file: Test4d.out, line 1


test result: Failed. Output does not match reference file: Test4d.out,
line 1


==snip==

i.e. it seems that something's going wrong with the message lookup code
for the compiler.warn.has.been.deprecated property. Is that a known 
bug/feature?

cheers,
dalibor topic




More information about the compiler-dev mailing list