Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Arthanareeswaran2019-03-20 07:12:30 -0400
committerJay Arthanareeswaran2019-03-20 07:12:30 -0400
commit689e50ea3890ceebc59230c81189bbe898acab6a (patch)
tree569228dc12bd45602f40c6ab2057f9736586ffad
parent896cb38596980efacd9f1a3858de3d5249bab258 (diff)
downloadeclipse.jdt.core-689e50ea3890ceebc59230c81189bbe898acab6a.tar.gz
eclipse.jdt.core-689e50ea3890ceebc59230c81189bbe898acab6a.tar.xz
eclipse.jdt.core-689e50ea3890ceebc59230c81189bbe898acab6a.zip
Bug 545576: [12] Push Java 12 work to masterI20190320-1800
Change-Id: I07d9771865898fb72e3a1de3c3921380d3e8439d Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CategorizedProblem.java2
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java26
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java4
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java2
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java2
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTVisitor.java4
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BreakStatement.java10
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SwitchCase.java10
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SwitchExpression.java2
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/NaiveASTFlattener.java2
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFlattener.java2
-rw-r--r--org.eclipse.jdt.core/formatter/org/eclipse/jdt/core/formatter/DefaultCodeFormatterConstants.java8
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java6
13 files changed, 40 insertions, 40 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CategorizedProblem.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CategorizedProblem.java
index 93ea8b8dee..881870b887 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CategorizedProblem.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CategorizedProblem.java
@@ -104,7 +104,7 @@ public abstract class CategorizedProblem implements IProblem {
*/
public static final int CAT_MODULE = 160;
/**
- * @since 3.17
+ * @since 3.18
*/
public static final int CAT_COMPLIANCE = 170;
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java
index 50cec157fd..3aba2281b9 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java
@@ -2047,11 +2047,11 @@ void setSourceStart(int sourceStart);
int LambdaShapeComputationError = 1101;
/** @since 3.13 */
int ProblemNotAnalysed = 1102;
- /** @since 3.17 */
+ /** @since 3.18 */
int PreviewFeatureDisabled = Compliance + 1103;
- /** @since 3.17 */
+ /** @since 3.18 */
int PreviewFeatureUsed = Compliance + 1104;
- /** @since 3.17 */
+ /** @since 3.18 */
int PreviewFeatureNotSupported = Compliance + 1105;
/** @since 3.13 */
@@ -2086,24 +2086,24 @@ void setSourceStart(int sourceStart);
int VarIsNotAllowedHere = Syntax + 1511; // ''var'' is not allowed here
/** @since 3.16 */
int VarCannotBeMixedWithNonVarParams = Syntax + 1512; // ''var'' cannot be mixed with explicit or implicit parameters
- /** @since 3.17 */
+ /** @since 3.18 */
int SwitchExpressionsIncompatibleResultExpressionTypes = TypeRelated + 1600;
- /** @since 3.17 */
+ /** @since 3.18 */
int SwitchExpressionsEmptySwitchBlock = Internal + 1601;
- /** @since 3.17 */
+ /** @since 3.18 */
int SwitchExpressionsNoResultExpression = TypeRelated + 1602;
- /** @since 3.17 */
+ /** @since 3.18 */
int SwitchExpressionSwitchLabeledBlockCompletesNormally = Internal + 1603;
- /** @since 3.17 */
+ /** @since 3.18 */
int SwitchExpressionLastStatementCompletesNormally = Internal + 1604;
- /** @since 3.17 */
+ /** @since 3.18 */
int SwitchExpressionTrailingSwitchLabels = Internal + 1605;
- /** @since 3.17 */
+ /** @since 3.18 */
int switchMixedCase = Syntax + 1606;
- /** @since 3.17 */
+ /** @since 3.18 */
int SwitchExpressionMissingDefaultCase = Internal + 1607;
- /** @since 3.17 */
+ /** @since 3.18 */
int SwitchExpressionBreakMissingValue = Internal + 1610;
- /** @since 3.17 */
+ /** @since 3.18 */
int SwitchExpressionMissingEnumConstantCase = Internal + 1611;
}
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
index 8993f689ba..6200f6db22 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
@@ -283,7 +283,7 @@ public final class AST {
* up to and including Java SE 12 (aka JDK 12).
* </p>
*
- * @since 3.17
+ * @since 3.18
*/
public static final int JLS12 = 12;
/**
@@ -2580,7 +2580,7 @@ public final class AST {
* and there are no statements or switch cases.
*
* @return a new unparented labeled switch expression node
- * @since 3.17
+ * @since 3.18
*/
public SwitchExpression newSwitchExpression() {
SwitchExpression result = new SwitchExpression(this);
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java
index d0c6107029..e50af76c07 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java
@@ -2297,7 +2297,7 @@ public class ASTMatcher {
* @return <code>true</code> if the subtree matches, or
* <code>false</code> if they do not match or the other object has a
* different node type or is <code>null</code>
- * @since 3.17
+ * @since 3.18
*/
public boolean match(SwitchExpression node, Object other) {
if (!(other instanceof SwitchExpression)) {
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java
index b4fda201f6..a635cbdc15 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java
@@ -959,7 +959,7 @@ public abstract class ASTNode {
* Node type constant indicating a node of type
* <code>SwitchExpression</code>.
* @see SwitchExpression
- * @since 3.17
+ * @since 3.18
*/
public static final int SWITCH_EXPRESSION = 100;
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTVisitor.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTVisitor.java
index 8fca35e446..69774d3542 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTVisitor.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTVisitor.java
@@ -1533,7 +1533,7 @@ public abstract class ASTVisitor {
* @return <code>true</code> if the children of this node should be
* visited, and <code>false</code> if the children of this node should
* be skipped
- * @since 3.17
+ * @since 3.18
*/
public boolean visit(SwitchExpression node) {
return true;
@@ -2847,7 +2847,7 @@ public abstract class ASTVisitor {
* </p>
*
* @param node the node to visit
- * @since 3.17
+ * @since 3.18
*/
public void endVisit(SwitchExpression node) {
// default implementation: do nothing
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BreakStatement.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BreakStatement.java
index 83ad302fcc..1e29a5e250 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BreakStatement.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BreakStatement.java
@@ -43,7 +43,7 @@ public class BreakStatement extends Statement {
/**
* The "expression" structural property of this node type (child type: {@link Expression}). (added in JEP 325).
- * @since 3.17
+ * @since 3.18
*/
public static final ChildPropertyDescriptor EXPRESSION_PROPERTY =
new ChildPropertyDescriptor(BreakStatement.class, "expression", Expression.class, OPTIONAL, NO_CYCLE_RISK); //$NON-NLS-1$);
@@ -217,7 +217,7 @@ public class BreakStatement extends Statement {
*
* @return the expression, or <code>null</code> if there is none
* @exception UnsupportedOperationException if this operation is used below JLS12
- * @since 3.17
+ * @since 3.18
*/
public Expression getExpression() {
// optionalExpression can be null
@@ -236,7 +236,7 @@ public class BreakStatement extends Statement {
* <li>the node already has a parent</li>
* </ul>
* @exception UnsupportedOperationException if this operation is used below JLS12
- * @since 3.17
+ * @since 3.18
*/
public void setExpression(Expression expression) {
unsupportedBelow12();
@@ -252,7 +252,7 @@ public class BreakStatement extends Statement {
*
* @return isImplicit <code>true</code> or <code>false</code>
* @exception UnsupportedOperationException if this operation is used below JLS12
- * @since 3.17
+ * @since 3.18
*/
public boolean isImplicit() {
unsupportedBelow12();
@@ -266,7 +266,7 @@ public class BreakStatement extends Statement {
* @param isImplicit <code>true</code> or <code>false</code>
* @exception UnsupportedOperationException if this operation is used below JLS12
- * @since 3.17
+ * @since 3.18
*/
void setImplicit(boolean isImplicit) {
unsupportedBelow12();
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SwitchCase.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SwitchCase.java
index 9d10a597b7..444a0ef7ef 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SwitchCase.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SwitchCase.java
@@ -48,14 +48,14 @@ public class SwitchCase extends Statement {
/**
* The "expression" structural property of this node type (child type: {@link Expression}). (added in JEP 325).
- * @since 3.17
+ * @since 3.18
*/
public static final ChildListPropertyDescriptor EXPRESSIONS2_PROPERTY =
new ChildListPropertyDescriptor(SwitchCase.class, "expression", Expression.class, CYCLE_RISK); //$NON-NLS-1$);
/**
* The "switchLabeledRule" structural property of this node type (type: {@link Boolean}).
- * @since 3.17
+ * @since 3.18
*/
public static final SimplePropertyDescriptor SWITCH_LABELED_RULE_PROPERTY =
new SimplePropertyDescriptor(SwitchCase.class, "switchLabeledRule", boolean.class, MANDATORY); //$NON-NLS-1$
@@ -252,7 +252,7 @@ public class SwitchCase extends Statement {
* @return the list of expression nodes
* (element type: {@link Expression})
* @exception UnsupportedOperationException if this operation is used below JLS12
- * @since 3.17
+ * @since 3.18
*/
public List expressions() {
if (this.expressions == null) {
@@ -289,7 +289,7 @@ public class SwitchCase extends Statement {
* @param switchLabeledRule <code>true</code> or <code>false</code>
* @exception UnsupportedOperationException if this operation is used below JLS12
- * @since 3.17
+ * @since 3.18
*/
public void setSwitchLabeledRule(boolean switchLabeledRule) {
unsupportedBelow12();
@@ -304,7 +304,7 @@ public class SwitchCase extends Statement {
*
* @return switchLabeledRule <code>true</code> or <code>false</code>
* @exception UnsupportedOperationException if this operation is used below JLS12
- * @since 3.17
+ * @since 3.18
*/
public boolean isSwitchLabeledRule() {
unsupportedBelow12();
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SwitchExpression.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SwitchExpression.java
index 241ca60a12..1a899b441c 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SwitchExpression.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SwitchExpression.java
@@ -32,7 +32,7 @@ import java.util.List;
* <code>Statement</code>.
* </p>
*
- * @since 3.17
+ * @since 3.18
* @noinstantiate This class is not intended to be instantiated by clients.
*/
@SuppressWarnings({"rawtypes", "unchecked"})
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/NaiveASTFlattener.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/NaiveASTFlattener.java
index 6dbf8bec92..e59d7e91c6 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/NaiveASTFlattener.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/NaiveASTFlattener.java
@@ -85,7 +85,7 @@ public class NaiveASTFlattener extends ASTVisitor {
/**
* Internal synonym for {@link AST#JLS12}. Use to alleviate
* deprecation warnings.
- * @since 3.17
+ * @since 3.18
*/
private static final int JLS12 = AST.JLS12;
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFlattener.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFlattener.java
index c079980529..a9a3c8a959 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFlattener.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFlattener.java
@@ -97,7 +97,7 @@ public class ASTRewriteFlattener extends ASTVisitor {
/**
* Internal synonym for {@link AST#JLS12}. Use to alleviate
* deprecation warnings.
- * @since 3.17
+ * @since 3.18
*/
private static final int JLS12 = AST.JLS12;
diff --git a/org.eclipse.jdt.core/formatter/org/eclipse/jdt/core/formatter/DefaultCodeFormatterConstants.java b/org.eclipse.jdt.core/formatter/org/eclipse/jdt/core/formatter/DefaultCodeFormatterConstants.java
index 6169c2d758..f832f2d19e 100644
--- a/org.eclipse.jdt.core/formatter/org/eclipse/jdt/core/formatter/DefaultCodeFormatterConstants.java
+++ b/org.eclipse.jdt.core/formatter/org/eclipse/jdt/core/formatter/DefaultCodeFormatterConstants.java
@@ -2128,7 +2128,7 @@ public class DefaultCodeFormatterConstants {
* </pre>
* @see JavaCore#INSERT
* @see JavaCore#DO_NOT_INSERT
- * @since 3.17
+ * @since 3.18
*/
public static final String FORMATTER_INSERT_SPACE_AFTER_ARROW_IN_SWITCH_CASE = JavaCore.PLUGIN_ID + ".formatter.insert_space_after_arrow_in_switch_case"; //$NON-NLS-1$
/**
@@ -2139,7 +2139,7 @@ public class DefaultCodeFormatterConstants {
* </pre>
* @see JavaCore#INSERT
* @see JavaCore#DO_NOT_INSERT
- * @since 3.17
+ * @since 3.18
*/
public static final String FORMATTER_INSERT_SPACE_AFTER_ARROW_IN_SWITCH_DEFAULT = JavaCore.PLUGIN_ID + ".formatter.insert_space_after_arrow_in_switch_default"; //$NON-NLS-1$
/**
@@ -2995,7 +2995,7 @@ public class DefaultCodeFormatterConstants {
* </pre>
* @see JavaCore#INSERT
* @see JavaCore#DO_NOT_INSERT
- * @since 3.17
+ * @since 3.18
*/
public static final String FORMATTER_INSERT_SPACE_BEFORE_ARROW_IN_SWITCH_CASE = JavaCore.PLUGIN_ID + ".formatter.insert_space_before_arrow_in_switch_case"; //$NON-NLS-1$
/**
@@ -3006,7 +3006,7 @@ public class DefaultCodeFormatterConstants {
* </pre>
* @see JavaCore#INSERT
* @see JavaCore#DO_NOT_INSERT
- * @since 3.17
+ * @since 3.18
*/
public static final String FORMATTER_INSERT_SPACE_BEFORE_ARROW_IN_SWITCH_DEFAULT = JavaCore.PLUGIN_ID + ".formatter.insert_space_before_arrow_in_switch_default"; //$NON-NLS-1$
/**
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java
index 0291a0d772..6cc7ebc08e 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java
@@ -2580,7 +2580,7 @@ public final class JavaCore extends Plugin {
* <dt>Default:</dt><dd><code>"disabled"</code></dd>
* </dl>
* @category CompilerOptionID
- * @since 3.17
+ * @since 3.18
*/
public static final String COMPILER_PB_ENABLE_PREVIEW_FEATURES = PLUGIN_ID + ".compiler.problem.enablePreviewFeatures"; //$NON-NLS-1$
/**
@@ -2592,7 +2592,7 @@ public final class JavaCore extends Plugin {
* <dt>Default:</dt><dd><code>"warning"</code></dd>
* </dl>
* @category CompilerOptionID
- * @since 3.17
+ * @since 3.18
*/
public static final String COMPILER_PB_REPORT_PREVIEW_FEATURES = PLUGIN_ID + ".compiler.problem.reportPreviewFeatures"; //$NON-NLS-1$
/**
@@ -3053,7 +3053,7 @@ public final class JavaCore extends Plugin {
public static final String VERSION_11 = "11"; //$NON-NLS-1$
/**
* Configurable option value: {@value}.
- * @since 3.17
+ * @since 3.18
* @category OptionValue
*/
public static final String VERSION_12 = "12"; //$NON-NLS-1$

Back to the top