This is an automated email from the ASF dual-hosted git repository.
jdaugherty pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/grails-intellij-plugin.git
The following commit(s) were added to refs/heads/main by this push:
new dbb1b4b Pin Mock JDK 11 in GormStandaloneTest for 2026.2
dbb1b4b is described below
commit dbb1b4b7532b5a8f482a95cde40fc62ef3a37d23
Author: James Daugherty <[email protected]>
AuthorDate: Sat Jul 18 23:57:38 2026 -0400
Pin Mock JDK 11 in GormStandaloneTest for 2026.2
GormStandaloneTest extends LightJavaCodeInsightFixtureTestCase directly
with its
own DefaultLightProjectDescriptor(), so it did not pick up the
GrailsTestCase
harness fix. On 2026.2 its default Mock JDK 1.7 no longer resolves, so
int/Integer
property types were unresolved and addTo* named-argument
completion/highlighting
for standalone @Entity beans failed. Pin Mock JDK 11 here too.
---
.../jetbrains/plugins/groovy/grails/domain/GormStandaloneTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/test/org/jetbrains/plugins/groovy/grails/domain/GormStandaloneTest.java
b/test/org/jetbrains/plugins/groovy/grails/domain/GormStandaloneTest.java
index d0bdd1f..0c96379 100644
--- a/test/org/jetbrains/plugins/groovy/grails/domain/GormStandaloneTest.java
+++ b/test/org/jetbrains/plugins/groovy/grails/domain/GormStandaloneTest.java
@@ -20,6 +20,7 @@ import com.intellij.openapi.module.Module;
import com.intellij.openapi.roots.ContentEntry;
import com.intellij.openapi.roots.ModifiableRootModel;
import com.intellij.psi.PsiFile;
+import com.intellij.testFramework.IdeaTestUtil;
import com.intellij.testFramework.LightProjectDescriptor;
import com.intellij.testFramework.PsiTestUtil;
import com.intellij.testFramework.fixtures.DefaultLightProjectDescriptor;
@@ -172,7 +173,8 @@ public class GormStandaloneTest extends
LightJavaCodeInsightFixtureTestCase {
return projectDescriptor;
}
- private final LightProjectDescriptor projectDescriptor = new
DefaultLightProjectDescriptor() {
+ // Pin Mock JDK 11: since 2026.2 the default Mock JDK 1.7 is no longer
shipped (see GrailsTestCase).
+ private final LightProjectDescriptor projectDescriptor = new
DefaultLightProjectDescriptor(IdeaTestUtil::getMockJdk11) {
@Override
public void configureModule(@NotNull Module module, @NotNull
ModifiableRootModel model, @NotNull ContentEntry contentEntry) {
super.configureModule(module, model, contentEntry);