diff --git a/project/PekkoBuild.scala b/project/PekkoBuild.scala index 2eab25cf4ce..e9847132b45 100644 --- a/project/PekkoBuild.scala +++ b/project/PekkoBuild.scala @@ -97,7 +97,8 @@ object PekkoBuild { "-feature", "-unchecked", // 'blessed' since 2.13.1 - "-language:higherKinds") + "-language:higherKinds", + "-Yfuture-lazy-vals") } else { Seq( "-encoding", diff --git a/remote/src/main/mima-filters/2.0.x.backwards.excludes/future-lazy-vals.excludes b/remote/src/main/mima-filters/2.0.x.backwards.excludes/future-lazy-vals.excludes new file mode 100644 index 00000000000..113e1cfc66d --- /dev/null +++ b/remote/src/main/mima-filters/2.0.x.backwards.excludes/future-lazy-vals.excludes @@ -0,0 +1,21 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# -Yfuture-lazy-vals changes the generated bytecode for companion objects +# containing lazy vals: the static initializer that was produced +# by the old sun.misc.Unsafe-based implementation is no longer emitted. +ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.remote.RemoteWatcher#Stats.")