Skip to content

Commit

Permalink
Merge pull request #10403 from SethTisue/more-jdk-21-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed May 18, 2023
2 parents 0579c28 + 826dd7a commit d542045
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/junit/scala/jdk/javaapi/StreamConvertersJavaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class StreamConvertersJavaTest {
public List<Integer> li = CollectionConverters.asScala(Arrays.asList(1, 2)).toList();
public List<Float> lf = CollectionConverters.asScala(Arrays.asList(1f, 2f)).toList();

public <K, V> Map<K, V> mkm(K k1, V v1, K k2, V v2) {
public static <K, V> Map<K, V> mkm(K k1, V v1, K k2, V v2) {
java.util.Map<K, V> m = new java.util.HashMap<K, V>();
m.put(k1, v1);
m.put(k2, v2);
Expand Down
3 changes: 3 additions & 0 deletions test/tasty/test/scala/tools/tastytest/TastyTestJUnit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package scala.tools.tastytest

import org.junit.{Test => test, BeforeClass => setup, AfterClass => teardown}
import org.junit.Assert._
import org.junit.Assume._

import scala.util.{Try, Failure, Properties}

Expand Down Expand Up @@ -91,6 +92,8 @@ object TastyTestJUnit {

@setup
def init(): Unit = {
// TODO remove once Scala 3 has a fix for scala/bug#12783
assumeFalse(scala.util.Properties.isJavaAtLeast("21"))
_dottyClassLoader = Dotc.initClassloader().get
}

Expand Down

0 comments on commit d542045

Please sign in to comment.