changeset 51544:a1b07c20ad81 switch

Adding @bug tags.
author jlahoda
date Tue, 10 Jul 2018 17:14:40 +0200
parents 90bd2b3ccb1c
children df740011e563
files test/langtools/tools/javac/lambda/BadSwitchExpressionLambda.java test/langtools/tools/javac/switchexpr/BlockExpression.java test/langtools/tools/javac/switchexpr/BooleanNumericNonNumeric.java test/langtools/tools/javac/switchexpr/ExhaustiveEnumSwitch.java test/langtools/tools/javac/switchexpr/ExpressionSwitch.java test/langtools/tools/javac/switchexpr/ExpressionSwitchBreaks1.java test/langtools/tools/javac/switchexpr/ExpressionSwitchBreaks2.java test/langtools/tools/javac/switchexpr/ExpressionSwitchBugs.java test/langtools/tools/javac/switchexpr/ExpressionSwitchCodeFromJLS.java test/langtools/tools/javac/switchexpr/ExpressionSwitchDA.java test/langtools/tools/javac/switchexpr/ExpressionSwitchFallThrough.java test/langtools/tools/javac/switchexpr/ExpressionSwitchFallThrough1.java test/langtools/tools/javac/switchexpr/ExpressionSwitchInfer.java test/langtools/tools/javac/switchexpr/ExpressionSwitchIntersectionTypes.java test/langtools/tools/javac/switchexpr/ExpressionSwitchNotExhaustive.java test/langtools/tools/javac/switchexpr/ExpressionSwitchUnreachable.java test/langtools/tools/javac/switchexpr/ParseIncomplete.java test/langtools/tools/javac/switchexpr/ParserRecovery.java test/langtools/tools/javac/switchextra/MultipleLabelsExpression.java test/langtools/tools/javac/switchextra/MultipleLabelsStatement.java test/langtools/tools/javac/switchextra/SwitchNoExtraTypes.java test/langtools/tools/javac/switchextra/SwitchObject.java test/langtools/tools/javac/switchextra/SwitchStatementArrow.java test/langtools/tools/javac/switchextra/SwitchStatementBroken.java test/langtools/tools/javac/switchextra/SwitchStatementBroken2.java test/langtools/tools/javac/switchnull/SwitchNullDisabled.java
diffstat 26 files changed, 28 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/langtools/tools/javac/lambda/BadSwitchExpressionLambda.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/lambda/BadSwitchExpressionLambda.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /*
  * @test /nodynamiccopyright/
+ * @bug 8206986
  * @summary Adding switch expressions
  * @compile/fail/ref=BadSwitchExpressionLambda.out -XDrawDiagnostics --enable-preview -source 12 BadSwitchExpressionLambda.java
  */
--- a/test/langtools/tools/javac/switchexpr/BlockExpression.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/BlockExpression.java	Tue Jul 10 17:14:40 2018 +0200
@@ -23,6 +23,7 @@
 
 /**
  * @test
+ * @bug 8206986
  * @compile --enable-preview -source 12 BlockExpression.java
  * @run main/othervm --enable-preview BlockExpression
  */
--- a/test/langtools/tools/javac/switchexpr/BooleanNumericNonNumeric.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/BooleanNumericNonNumeric.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /**
  * @test /nodynamiccopyright/
+ * @bug 8206986
  * @compile/fail/ref=BooleanNumericNonNumeric.out -XDrawDiagnostics --enable-preview -source 12 BooleanNumericNonNumeric.java
  */
 
--- a/test/langtools/tools/javac/switchexpr/ExhaustiveEnumSwitch.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ExhaustiveEnumSwitch.java	Tue Jul 10 17:14:40 2018 +0200
@@ -23,6 +23,7 @@
 
 /**
  * @test
+ * @bug 8206986
  * @compile --enable-preview -source 12 ExhaustiveEnumSwitch.java
  * @compile ExhaustiveEnumSwitchExtra.java
  * @run main/othervm --enable-preview ExhaustiveEnumSwitch
--- a/test/langtools/tools/javac/switchexpr/ExpressionSwitch.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ExpressionSwitch.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /**
  * @test /nodynamiccopyright/
+ * @bug 8206986
  * @compile/fail/ref=ExpressionSwitch-old.out -source 9 -Xlint:-options -XDrawDiagnostics ExpressionSwitch.java
  * @compile --enable-preview -source 12 ExpressionSwitch.java
  * @run main/othervm --enable-preview ExpressionSwitch
--- a/test/langtools/tools/javac/switchexpr/ExpressionSwitchBreaks1.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ExpressionSwitchBreaks1.java	Tue Jul 10 17:14:40 2018 +0200
@@ -23,6 +23,7 @@
 
 /**
  * @test
+ * @bug 8206986
  * @compile --enable-preview -source 12 ExpressionSwitchBreaks1.java
  * @run main/othervm --enable-preview ExpressionSwitchBreaks1
  */
--- a/test/langtools/tools/javac/switchexpr/ExpressionSwitchBreaks2.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ExpressionSwitchBreaks2.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /**
  * @test /nodynamiccopyright/
+ * @bug 8206986
  * @compile/fail/ref=ExpressionSwitchBreaks2.out -XDrawDiagnostics --enable-preview -source 12 ExpressionSwitchBreaks2.java
  */
 
--- a/test/langtools/tools/javac/switchexpr/ExpressionSwitchBugs.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ExpressionSwitchBugs.java	Tue Jul 10 17:14:40 2018 +0200
@@ -23,6 +23,7 @@
 
 /**
  * @test
+ * @bug 8206986
  * @compile --enable-preview -source 12 ExpressionSwitchBugs.java
  * @run main/othervm --enable-preview ExpressionSwitchBugs
  */
--- a/test/langtools/tools/javac/switchexpr/ExpressionSwitchCodeFromJLS.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ExpressionSwitchCodeFromJLS.java	Tue Jul 10 17:14:40 2018 +0200
@@ -23,6 +23,7 @@
 
 /**
  * @test
+ * @bug 8206986
  * @compile --enable-preview -source 12 ExpressionSwitchCodeFromJLS.java
  * @run main/othervm --enable-preview ExpressionSwitchCodeFromJLS
  */
--- a/test/langtools/tools/javac/switchexpr/ExpressionSwitchDA.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ExpressionSwitchDA.java	Tue Jul 10 17:14:40 2018 +0200
@@ -23,6 +23,7 @@
 
 /**
  * @test
+ * @bug 8206986
  * @compile --enable-preview -source 12 ExpressionSwitchDA.java
  * @run main/othervm --enable-preview ExpressionSwitchDA
  */
--- a/test/langtools/tools/javac/switchexpr/ExpressionSwitchFallThrough.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ExpressionSwitchFallThrough.java	Tue Jul 10 17:14:40 2018 +0200
@@ -23,6 +23,7 @@
 
 /**
  * @test
+ * @bug 8206986
  * @compile --enable-preview -source 12 ExpressionSwitchFallThrough.java
  * @run main/othervm --enable-preview ExpressionSwitchFallThrough
  */
--- a/test/langtools/tools/javac/switchexpr/ExpressionSwitchFallThrough1.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ExpressionSwitchFallThrough1.java	Tue Jul 10 17:14:40 2018 +0200
@@ -23,6 +23,7 @@
 
 /**
  * @test
+ * @bug 8206986
  * @compile --enable-preview -source 12 ExpressionSwitchFallThrough1.java
  * @run main/othervm --enable-preview ExpressionSwitchFallThrough1
  */
--- a/test/langtools/tools/javac/switchexpr/ExpressionSwitchInfer.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ExpressionSwitchInfer.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /**
  * @test /nodynamiccopyright/
+ * @bug 8206986
  * @compile/fail/ref=ExpressionSwitchInfer.out -XDrawDiagnostics --enable-preview -source 12 ExpressionSwitchInfer.java
  */
 
--- a/test/langtools/tools/javac/switchexpr/ExpressionSwitchIntersectionTypes.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ExpressionSwitchIntersectionTypes.java	Tue Jul 10 17:14:40 2018 +0200
@@ -23,6 +23,7 @@
 
 /**
  * @test
+ * @bug 8206986
  * @compile --enable-preview -source 12 ExpressionSwitchIntersectionTypes.java
  * @run main/othervm --enable-preview ExpressionSwitchIntersectionTypes
  */
--- a/test/langtools/tools/javac/switchexpr/ExpressionSwitchNotExhaustive.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ExpressionSwitchNotExhaustive.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /**
  * @test /nodynamiccopyright/
+ * @bug 8206986
  * @compile/fail/ref=ExpressionSwitchNotExhaustive.out -XDrawDiagnostics --enable-preview -source 12 ExpressionSwitchNotExhaustive.java
  */
 
--- a/test/langtools/tools/javac/switchexpr/ExpressionSwitchUnreachable.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ExpressionSwitchUnreachable.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /**
  * @test /nodynamiccopyright/
+ * @bug 8206986
  * @compile/fail/ref=ExpressionSwitchUnreachable.out -XDrawDiagnostics --enable-preview -source 12 ExpressionSwitchUnreachable.java
  */
 
--- a/test/langtools/tools/javac/switchexpr/ParseIncomplete.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ParseIncomplete.java	Tue Jul 10 17:14:40 2018 +0200
@@ -23,6 +23,7 @@
 
 /*
  * @test
+ * @bug 8206986
  * @summary Ensure than parser can parse incomplete sources
  * @modules jdk.compiler
  */
--- a/test/langtools/tools/javac/switchexpr/ParserRecovery.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchexpr/ParserRecovery.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /**
  * @test /nodynamiccopyright/
+ * @bug 8206986
  * @compile/fail/ref=ParserRecovery.out -XDrawDiagnostics --enable-preview -source 12 ParserRecovery.java
  */
 
--- a/test/langtools/tools/javac/switchextra/MultipleLabelsExpression.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchextra/MultipleLabelsExpression.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /**
  * @test /nodynamiccopyright/
+ * @bug 8206986
  * @compile/fail/ref=MultipleLabelsExpression-old.out -source 9 -Xlint:-options -XDrawDiagnostics MultipleLabelsExpression.java
  * @compile --enable-preview -source 12 MultipleLabelsExpression.java
  * @run main/othervm --enable-preview MultipleLabelsExpression
--- a/test/langtools/tools/javac/switchextra/MultipleLabelsStatement.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchextra/MultipleLabelsStatement.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /**
  * @test /nodynamiccopyright/
+ * @bug 8206986
  * @compile/fail/ref=MultipleLabelsStatement-old.out -source 9 -Xlint:-options -XDrawDiagnostics MultipleLabelsStatement.java
  * @compile --enable-preview -source 12 MultipleLabelsStatement.java
  * @run main/othervm --enable-preview MultipleLabelsStatement
--- a/test/langtools/tools/javac/switchextra/SwitchNoExtraTypes.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchextra/SwitchNoExtraTypes.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /**
  * @test /nodynamiccopyright/
+ * @bug 8206986
  * @compile/fail/ref=SwitchNoExtraTypes.out -XDrawDiagnostics SwitchNoExtraTypes.java
  */
 
--- a/test/langtools/tools/javac/switchextra/SwitchObject.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchextra/SwitchObject.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /*
  * @test /nodynamiccopyright/
+ * @bug 8206986
  * @compile/fail/ref=SwitchObject.out -XDrawDiagnostics SwitchObject.java
  */
 public class SwitchObject {
--- a/test/langtools/tools/javac/switchextra/SwitchStatementArrow.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchextra/SwitchStatementArrow.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /**
  * @test /nodymaticcopyright/
+ * @bug 8206986
  * @compile/fail/ref=SwitchStatementArrow-old.out -source 9 -Xlint:-options -XDrawDiagnostics SwitchStatementArrow.java
  * @compile --enable-preview -source 12 SwitchStatementArrow.java
  * @run main/othervm --enable-preview SwitchStatementArrow
--- a/test/langtools/tools/javac/switchextra/SwitchStatementBroken.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchextra/SwitchStatementBroken.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /**
  * @test /nodynamiccopyright/
+ * @bug 8206986
  * @compile/fail/ref=SwitchStatementBroken.out -XDrawDiagnostics --enable-preview -source 12 SwitchStatementBroken.java
  */
 
--- a/test/langtools/tools/javac/switchextra/SwitchStatementBroken2.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchextra/SwitchStatementBroken2.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
-/** /nodynamiccopyright/
- * @test
+/**
+ * @test /nodynamiccopyright/
+ * @bug 8206986
  * @compile/fail/ref=SwitchStatementBroken2.out -XDrawDiagnostics --enable-preview -source 12 SwitchStatementBroken2.java
  */
 
--- a/test/langtools/tools/javac/switchnull/SwitchNullDisabled.java	Tue Jul 10 14:54:32 2018 +0200
+++ b/test/langtools/tools/javac/switchnull/SwitchNullDisabled.java	Tue Jul 10 17:14:40 2018 +0200
@@ -1,5 +1,6 @@
 /**
  * @test /nodynamiccopyright/
+ * @bug 8206986
  * @compile/fail/ref=SwitchNullDisabled.out -XDrawDiagnostics SwitchNullDisabled.java
  */