Skip to content

Commit

Permalink
Eclipse 4.14 (RC2) JDT Patch for Groovy-Eclipse: JDT commit 9c0cf52
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Dec 6, 2019
1 parent 0496178 commit 9c68ebc
Show file tree
Hide file tree
Showing 9 changed files with 124 additions and 109 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</license>

<requires>
<import feature="org.eclipse.jdt" version="3.18.200.v20191101-0300" patch="true"/>
<import feature="org.eclipse.jdt" version="3.18.200.v20191204-1800" patch="true"/>
</requires>

<plugin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,104 +1,93 @@
ANNOTATION_ELEMENT_TYPE_ADDED_FIELD=Ignore
ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Ignore
ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Ignore
ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Ignore
ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Ignore
ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Ignore
API_COMPONENT_ELEMENT_TYPE_REMOVED_API_TYPE=Ignore
API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_API_TYPE=Ignore
API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_TYPE=Ignore
API_COMPONENT_ELEMENT_TYPE_REMOVED_TYPE=Ignore
API_USE_SCAN_FIELD_SEVERITY=Ignore
API_USE_SCAN_METHOD_SEVERITY=Ignore
API_USE_SCAN_TYPE_SEVERITY=Ignore
CLASS_ELEMENT_TYPE_ADDED_FIELD=Ignore
CLASS_ELEMENT_TYPE_ADDED_METHOD=Ignore
CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Ignore
CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Ignore
CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Ignore
CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Ignore
CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Ignore
CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Ignore
CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Ignore
CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Ignore
CLASS_ELEMENT_TYPE_REMOVED_FIELD=Ignore
CLASS_ELEMENT_TYPE_REMOVED_METHOD=Ignore
CLASS_ELEMENT_TYPE_REMOVED_SUPERCLASS=Ignore
CLASS_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Ignore
CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Ignore
CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Ignore
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Ignore
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Ignore
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Ignore
ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Ignore
ENUM_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Ignore
ENUM_ELEMENT_TYPE_REMOVED_ENUM_CONSTANT=Ignore
ENUM_ELEMENT_TYPE_REMOVED_FIELD=Ignore
ENUM_ELEMENT_TYPE_REMOVED_METHOD=Ignore
ENUM_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Ignore
FIELD_ELEMENT_TYPE_ADDED_VALUE=Ignore
FIELD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Ignore
FIELD_ELEMENT_TYPE_CHANGED_FINAL_TO_NON_FINAL_STATIC_CONSTANT=Ignore
FIELD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Ignore
FIELD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Ignore
FIELD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Ignore
FIELD_ELEMENT_TYPE_CHANGED_TYPE=Ignore
FIELD_ELEMENT_TYPE_CHANGED_VALUE=Ignore
FIELD_ELEMENT_TYPE_REMOVED_TYPE_ARGUMENT=Ignore
FIELD_ELEMENT_TYPE_REMOVED_VALUE=Ignore
ILLEGAL_EXTEND=Ignore
ILLEGAL_IMPLEMENT=Ignore
ILLEGAL_INSTANTIATE=Ignore
ILLEGAL_OVERRIDE=Ignore
ILLEGAL_REFERENCE=Ignore
INTERFACE_ELEMENT_TYPE_ADDED_DEFAULT_METHOD=Ignore
INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Ignore
INTERFACE_ELEMENT_TYPE_ADDED_METHOD=Ignore
INTERFACE_ELEMENT_TYPE_ADDED_RESTRICTIONS=Ignore
INTERFACE_ELEMENT_TYPE_ADDED_SUPER_INTERFACE_WITH_METHODS=Ignore
INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Ignore
INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Ignore
INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Ignore
INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Ignore
INTERFACE_ELEMENT_TYPE_REMOVED_METHOD=Ignore
INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Ignore
INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Ignore
INVALID_ANNOTATION=Ignore
INVALID_JAVADOC_TAG=Ignore
INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Ignore
LEAK_EXTEND=Ignore
LEAK_FIELD_DECL=Ignore
LEAK_IMPLEMENT=Ignore
LEAK_METHOD_PARAM=Ignore
LEAK_METHOD_RETURN_TYPE=Ignore
METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Ignore
METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Ignore
METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Ignore
METHOD_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Ignore
METHOD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Ignore
METHOD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Ignore
METHOD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Ignore
METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Ignore
METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Ignore
METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Ignore
MISSING_EE_DESCRIPTIONS=Ignore
TYPE_PARAMETER_ELEMENT_TYPE_ADDED_CLASS_BOUND=Ignore
TYPE_PARAMETER_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Ignore
TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Ignore
TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Ignore
TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Ignore
TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Ignore
UNUSED_PROBLEM_FILTERS=Ignore
automatically_removed_unused_problem_filters=Ignore
changed_execution_env=Ignore
ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error
ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error
ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Error
ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
API_COMPONENT_ELEMENT_TYPE_REMOVED_API_TYPE=Error
API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_API_TYPE=Error
API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_TYPE=Error
API_COMPONENT_ELEMENT_TYPE_REMOVED_TYPE=Error
CLASS_ELEMENT_TYPE_ADDED_METHOD=Error
CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error
CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error
CLASS_ELEMENT_TYPE_REMOVED_METHOD=Error
CLASS_ELEMENT_TYPE_REMOVED_SUPERCLASS=Error
CLASS_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
ENUM_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
ENUM_ELEMENT_TYPE_REMOVED_ENUM_CONSTANT=Error
ENUM_ELEMENT_TYPE_REMOVED_FIELD=Error
ENUM_ELEMENT_TYPE_REMOVED_METHOD=Error
ENUM_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
FIELD_ELEMENT_TYPE_ADDED_VALUE=Error
FIELD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
FIELD_ELEMENT_TYPE_CHANGED_FINAL_TO_NON_FINAL_STATIC_CONSTANT=Error
FIELD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
FIELD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error
FIELD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error
FIELD_ELEMENT_TYPE_CHANGED_TYPE=Error
FIELD_ELEMENT_TYPE_CHANGED_VALUE=Error
FIELD_ELEMENT_TYPE_REMOVED_TYPE_ARGUMENT=Error
FIELD_ELEMENT_TYPE_REMOVED_VALUE=Error
ILLEGAL_EXTEND=Warning
ILLEGAL_IMPLEMENT=Warning
ILLEGAL_INSTANTIATE=Warning
ILLEGAL_OVERRIDE=Warning
ILLEGAL_REFERENCE=Warning
INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error
INTERFACE_ELEMENT_TYPE_ADDED_METHOD=Error
INTERFACE_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
INTERFACE_ELEMENT_TYPE_ADDED_SUPER_INTERFACE_WITH_METHODS=Error
INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error
INTERFACE_ELEMENT_TYPE_REMOVED_METHOD=Error
INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
INVALID_JAVADOC_TAG=Warning
INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Warning
LEAK_EXTEND=Warning
LEAK_FIELD_DECL=Warning
LEAK_IMPLEMENT=Warning
LEAK_METHOD_PARAM=Warning
LEAK_METHOD_RETURN_TYPE=Warning
METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
METHOD_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
METHOD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
METHOD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error
METHOD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error
METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error
METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
TYPE_PARAMETER_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
TYPE_PARAMETER_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
UNUSED_PROBLEM_FILTERS=Warning
automatically_removed_unused_problem_filters=false
eclipse.preferences.version=1
incompatible_api_component_version=Ignore
incompatible_api_component_version=Error
incompatible_api_component_version_include_major_without_breaking_change=Disabled
incompatible_api_component_version_include_minor_without_api_change=Disabled
incompatible_api_component_version_report_major_without_breaking_change=Ignore
incompatible_api_component_version_report_minor_without_api_change=Ignore
invalid_since_tag_version=Ignore
malformed_since_tag=Ignore
missing_since_tag=Ignore
invalid_since_tag_version=Error
malformed_since_tag=Error
missing_since_tag=Error
report_api_breakage_when_major_version_incremented=Disabled
report_resolution_errors_api_component=Ignore
report_resolution_errors_api_component=Warning
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
jarprocessor.exclude.children=true
jarprocessor.exclude.pack=true
jarprocessor.exclude.pack=true
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ protected boolean commentParse() {
}
updateDocComment();
} catch (Exception ex) {
ex.printStackTrace();
validComment = false;
}
return validComment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,6 @@ protected boolean parseUsesReference() {
}

protected boolean pushUsesReference(Object typeRef) {
// TODO Auto-generated method stub
if (this.usesReferencesPtr == -1l) {
this.usesReferencesStack = new TypeReference[10];
}
Expand Down Expand Up @@ -1104,7 +1103,6 @@ protected boolean parseProvidesReference() {
}

protected boolean pushProvidesReference(Object typeRef) {
// TODO Auto-generated method stub
if (this.providesReferencesPtr == -1l) {
this.providesReferencesStack = new TypeReference[10];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ public class DefaultCodeFormatterConstants {
* @see #INDENT_BY_ONE
* @see #INDENT_DEFAULT
* @see #INDENT_ON_COLUMN
* @since 3.19
* @since 3.20
*/
public static final String FORMATTER_TEXT_BLOCK_INDENTATION = JavaCore.PLUGIN_ID + ".formatter.text_block_indentation"; //$NON-NLS-1$

Expand Down Expand Up @@ -5103,7 +5103,7 @@ public class DefaultCodeFormatterConstants {
* <pre>
* FORMATTER / Indentation is not touched, it's preserved from original source.
* </pre>
* @since 3.19
* @since 3.20
*/
public static final int INDENT_PRESERVE = 3;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ public static IScanner createScanner(boolean tokenizeComments, boolean tokenizeW
* @return a scanner
* @see org.eclipse.jdt.core.compiler.IScanner
*
* @since 3.14
* @since 3.20
*/
@SuppressWarnings("javadoc") // references deprecated TokenNameIdentifier
public static IScanner createScanner(boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean recordLineSeparator, String sourceLevel, String complianceLevel, boolean enablePreview) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2018 IBM Corporation and others.
* Copyright (c) 2000, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -31,13 +31,15 @@
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.zip.CRC32;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;

Expand Down Expand Up @@ -122,6 +124,9 @@ public AssertionFailedException(String message) {
public static final String TAG_DISCOURAGED = "discouraged"; //$NON-NLS-1$
public static final String TAG_IGNORE_IF_BETTER = "ignoreifbetter"; //$NON-NLS-1$

// common index location for all workspaces
private static String SHARED_INDEX_LOCATION = System.getProperty("jdt.core.sharedIndexLocation"); //$NON-NLS-1$

/**
* Describes the kind of classpath entry - one of
* CPE_PROJECT, CPE_LIBRARY, CPE_SOURCE, CPE_VARIABLE or CPE_CONTAINER
Expand Down Expand Up @@ -1757,6 +1762,18 @@ public IClasspathEntry getResolvedEntry() {
public URL getLibraryIndexLocation() {
switch(getEntryKind()) {
case IClasspathEntry.CPE_LIBRARY :
if (SHARED_INDEX_LOCATION != null) {
try {
String pathString = getPath().toPortableString();
CRC32 checksumCalculator = new CRC32();
checksumCalculator.update(pathString.getBytes());
String fileName = Long.toString(checksumCalculator.getValue()) + ".index"; //$NON-NLS-1$
return new URL("file", null, Paths.get(SHARED_INDEX_LOCATION, fileName).toString()); //$NON-NLS-1$
} catch (MalformedURLException e1) {
Util.log(e1); // should not happen if protocol known (eg. 'file')
}
}
break;
case IClasspathEntry.CPE_VARIABLE :
break;
default :
Expand Down Expand Up @@ -2523,4 +2540,15 @@ private static IJavaModelStatus validateLibraryContents(IPath path, IJavaProject
}
return JavaModelStatus.VERIFIED_OK;
}

/*
* For testing shared index location in JavaIndexTests only
*/
public static void setSharedIndexLocation(String value, Class<?> clazz) throws IllegalArgumentException{
if (clazz != null && "org.eclipse.jdt.core.tests.model.JavaIndexTests".equals(clazz.getName())) { //$NON-NLS-1$
SHARED_INDEX_LOCATION = value;
} else {
throw new IllegalArgumentException("Cannot set index location for specified test class"); //$NON-NLS-1$
}
}
}
1 change: 1 addition & 0 deletions jdt-patch/e414/org.eclipse.jdt.core/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
2019-11-09: 3106c52 (2019-12 M2)
2019-11-23: f44d4bd (2019-12 M3)
2019-11-29: 362b8a1 (2019-12 RC1)
2019-12-06: 9c0cf52 (2019-12 RC2)

0 comments on commit 9c68ebc

Please sign in to comment.