-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
8
tools/javac/annotations/typeAnnotations/failures/CantAnnotateStaticClass.java
#Test Results (version 2)
#Tue May 07 18:07:05 PDT 2013
#checksum:2a33e5d3c090be32
#-----testdescription-----
$file=/w/jjg/work/type-annos/tl/langtools/test/tools/javac/annotations/typeAnnotations/failures/CantAn
notateStaticClass.java
$root=/w/jjg/work/type-annos/tl/langtools/test
author=Werner Dietl
keywords=bug8006733 bug8006775
run=USER_SPECIFIED compile/fail/ref\=CantAnnotateStaticClass.out -XDrawDiagnostics CantAnnotateStaticC
lass.java\n
source=CantAnnotateStaticClass.java
title=A static outer class cannot be annotated.
#-----environment-----
#-----testresult-----
description=file\:/w/jjg/work/type-annos/tl/langtools/test/tools/javac/annotations/typeAnnotations/fai
lures/CantAnnotateStaticClass.java
elapsed=91 0\:00\:00.091
end=Tue May 07 18\:07\:05 PDT 2013
environment=regtest
execStatus=Failed. Output does not match reference file\: CantAnnotateStaticClass.out, line 1
hostname=scaaa042
javatestOS=Linux 3.5.0-25-generic (amd64)
javatestVersion=4.4
jtregVersion=jtreg 4.1 fcs b05
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages compile
start=Tue May 07 18\:07\:05 PDT 2013
test=tools/javac/annotations/typeAnnotations/failures/CantAnnotateStaticClass.java
user.name=jjg
work=/w/jjg/work/type-annos/tl/build/jtreg/work/tools/javac/annotations/typeAnnotations/failures
#section:script_messages
----------messages:(5/268)----------
JDK under test: (/w/jjg/work/type-annos/tl/build/linux-x86_64-normal-server-release/images/j2sdk-image
)
openjdk version "1.8.0-internal"
OpenJDK Runtime Environment (build 1.8.0-internal-jjg_2013_05_07_17_55-b00)
OpenJDK 64-Bit Server VM (build 25.0-b30, mixed mode)
#section:compile
----------messages:(3/312)----------
command: compile -XDrawDiagnostics /w/jjg/work/type-annos/tl/langtools/test/tools/javac/annotations/ty
peAnnotations/failures/CantAnnotateStaticClass.java
reason: User specified action: run compile/fail/ref=CantAnnotateStaticClass.out -XDrawDiagnostics Cant
AnnotateStaticClass.java
elapsed time (seconds): 0.091
----------direct:(10/641)----------
CantAnnotateStaticClass.java:21:20: compiler.err.cant.annotate.static.class
CantAnnotateStaticClass.java:22:13: compiler.err.cant.annotate.static.class
CantAnnotateStaticClass.java:23:29: compiler.err.cant.annotate.static.class
CantAnnotateStaticClass.java:25:29: compiler.err.cant.annotate.static.class
CantAnnotateStaticClass.java:28:26: compiler.err.cant.annotate.static.class
CantAnnotateStaticClass.java:29:9: compiler.err.cant.annotate.static.class
CantAnnotateStaticClass.java:30:35: compiler.err.cant.annotate.static.class
- compiler.note.unchecked.filename: CantAnnotateStaticClass.java
- compiler.note.unchecked.recompile
7 errors
result: Failed. Output does not match reference file: CantAnnotateStaticClass.out, line 1
test result: Failed. Output does not match reference file: CantAnnotateStaticClass.out, line 1
#Test Results (version 2)
#Tue May 07 18:07:05 PDT 2013
#checksum:2a33e5d3c090be32
#-----testdescription-----
$file=/w/jjg/work/type-annos/tl/langtools/test/tools/javac/annotations/typeAnnotations/failures/CantAn
notateStaticClass.java
$root=/w/jjg/work/type-annos/tl/langtools/test
author=Werner Dietl
keywords=bug8006733 bug8006775
run=USER_SPECIFIED compile/fail/ref\=CantAnnotateStaticClass.out -XDrawDiagnostics CantAnnotateStaticC
lass.java\n
source=CantAnnotateStaticClass.java
title=A static outer class cannot be annotated.
#-----environment-----
#-----testresult-----
description=file\:/w/jjg/work/type-annos/tl/langtools/test/tools/javac/annotations/typeAnnotations/fai
lures/CantAnnotateStaticClass.java
elapsed=91 0\:00\:00.091
end=Tue May 07 18\:07\:05 PDT 2013
environment=regtest
execStatus=Failed. Output does not match reference file\: CantAnnotateStaticClass.out, line 1
hostname=scaaa042
javatestOS=Linux 3.5.0-25-generic (amd64)
javatestVersion=4.4
jtregVersion=jtreg 4.1 fcs b05
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages compile
start=Tue May 07 18\:07\:05 PDT 2013
test=tools/javac/annotations/typeAnnotations/failures/CantAnnotateStaticClass.java
user.name=jjg
work=/w/jjg/work/type-annos/tl/build/jtreg/work/tools/javac/annotations/typeAnnotations/failures
#section:script_messages
----------messages:(5/268)----------
JDK under test: (/w/jjg/work/type-annos/tl/build/linux-x86_64-normal-server-release/images/j2sdk-image
)
openjdk version "1.8.0-internal"
OpenJDK Runtime Environment (build 1.8.0-internal-jjg_2013_05_07_17_55-b00)
OpenJDK 64-Bit Server VM (build 25.0-b30, mixed mode)
#section:compile
----------messages:(3/312)----------
command: compile -XDrawDiagnostics /w/jjg/work/type-annos/tl/langtools/test/tools/javac/annotations/ty
peAnnotations/failures/CantAnnotateStaticClass.java
reason: User specified action: run compile/fail/ref=CantAnnotateStaticClass.out -XDrawDiagnostics Cant
AnnotateStaticClass.java
elapsed time (seconds): 0.091
----------direct:(10/641)----------
CantAnnotateStaticClass.java:21:20: compiler.err.cant.annotate.static.class
CantAnnotateStaticClass.java:22:13: compiler.err.cant.annotate.static.class
CantAnnotateStaticClass.java:23:29: compiler.err.cant.annotate.static.class
CantAnnotateStaticClass.java:25:29: compiler.err.cant.annotate.static.class
CantAnnotateStaticClass.java:28:26: compiler.err.cant.annotate.static.class
CantAnnotateStaticClass.java:29:9: compiler.err.cant.annotate.static.class
CantAnnotateStaticClass.java:30:35: compiler.err.cant.annotate.static.class
- compiler.note.unchecked.filename: CantAnnotateStaticClass.java
- compiler.note.unchecked.recompile
7 errors
result: Failed. Output does not match reference file: CantAnnotateStaticClass.out, line 1
test result: Failed. Output does not match reference file: CantAnnotateStaticClass.out, line 1
- relates to
-
JDK-8006733 allow type annotations only on type uses, not on scoping
-
- Closed
-