Skip to content

Commit

Permalink
Eclipse 4.34 (RC2) JDT Patch for Groovy-Eclipse
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Dec 2, 2024
1 parent b961985 commit 142f93f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions groovy-eclipse.setup
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,13 @@
<requirement
name="org.eclipse.test.feature.group"/>
<repositoryList
name="2023-06">
name="2024-12">
<repository
url="https://download.eclipse.org/releases/2024-12"/>
<repository
url="https://download.eclipse.org/eclipse/updates/4.34"/>
<repository
url="https://download.eclipse.org/eclipse/updates/4.34-I-builds/I20241113-1800"/>
url="https://download.eclipse.org/eclipse/updates/4.34-I-builds/I20241120-1800"/>
</repositoryList>
<repositoryList
name="2024-09">
Expand Down
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.20.0.v20241113-1800" patch="true"/>
<import feature="org.eclipse.jdt" version="3.20.0.v20241120-1800" patch="true"/>
</requires>

<plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public IJavaElement[] codeSelect(int offset, int length) throws JavaModelExcepti
/* GROOVY edit
variableBinding.getDeclaringMethod() instanceof IMethodBinding declaringMethod &&
declaringMethod.isCompactConstructor() &&
Arrays.stream(declaringMethod.getParameterNames()).anyMatch(pn -> variableBinding.getName().equals(pn)) &&
Arrays.stream(declaringMethod.getParameterNames()).anyMatch(variableBinding.getName()::equals) &&
declaringMethod.getDeclaringClass() instanceof ITypeBinding recordBinding &&
recordBinding.isRecord() &&
recordBinding.getJavaElement() instanceof IType recordType &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.util.Set;
import org.eclipse.core.resources.*;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.ISafeRunnable;
Expand Down Expand Up @@ -2022,7 +2023,9 @@ public void resetProjectCaches() {
*/
public void registerJavaModelDelta(IJavaElementDelta delta) {
if (JavaModelManager.isReadOnly()) {
throw new IllegalStateException("Its not allow to modify JavaModel during ReadOnly action. delta=" + delta); //$NON-NLS-1$
ILog.get().warn("JavaModel change during read only operation", new IllegalStateException( //$NON-NLS-1$
"JavaModel modified during 'read only' operation. Consider to report this warning to https://github.com/eclipse-jdt/eclipse.jdt.core/issues. delta=" //$NON-NLS-1$
+ delta));
}
this.javaModelDeltas.add(delta);
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<repository>
<id>milestone</id>
<layout>p2</layout>
<url>https://download.eclipse.org/eclipse/updates/4.34-I-builds/I20241113-1800</url>
<url>https://download.eclipse.org/eclipse/updates/4.34-I-builds/I20241120-1800</url>
</repository>
</repositories>
<modules>
Expand Down

0 comments on commit 142f93f

Please sign in to comment.