From 3db796be322b8025bcfc5defaceb4729f3840537 Mon Sep 17 00:00:00 2001 From: Marcelo Romulo Fernandes Date: Sun, 7 Aug 2022 10:09:54 -0300 Subject: [PATCH] build querydsl with java 17 String implements Constable and ConstantDesc in java 17 --- .github/workflows/ci.yml | 2 +- .../test/scala/com/querydsl/scala/ReflectionUtilsTest.scala | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aaec12512..d22d375d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: strategy: matrix: target: [test] - java: [1.8, 11] + java: [1.8, 11, 17] include: - target: test containers: db2 mysql postgresql mongo sqlserver oracle cubrid firebird diff --git a/querydsl-scala/src/test/scala/com/querydsl/scala/ReflectionUtilsTest.scala b/querydsl-scala/src/test/scala/com/querydsl/scala/ReflectionUtilsTest.scala index 8a05df1b5..4fc520cb9 100644 --- a/querydsl-scala/src/test/scala/com/querydsl/scala/ReflectionUtilsTest.scala +++ b/querydsl-scala/src/test/scala/com/querydsl/scala/ReflectionUtilsTest.scala @@ -12,8 +12,10 @@ class ReflectionUtilsTest { @Test def getImplementedInterfaces { - assertEquals(Set(classOf[java.io.Serializable],classOf[Comparable[_]],classOf[CharSequence]), - ReflectionUtils.getImplementedInterfaces(classOf[String])) + var setToTest = ReflectionUtils.getImplementedInterfaces(classOf[String]) + assertTrue(setToTest.contains(classOf[java.io.Serializable])) + assertTrue(setToTest.contains(classOf[Comparable[_]])) + assertTrue(setToTest.contains(classOf[CharSequence])) } @Test