@@ -3,77 +3,18 @@ import tastymima.intf._
3
3
4
4
object TastyMiMaFilters {
5
5
val StdlibBootstrapped : java.util.List [ProblemMatcher ] = asList(
6
- // OK
7
- ProblemMatcher .make(ProblemKind .MissingClass , " scala.*.<local child>" ),
8
-
9
6
// OK: constructors have a result type the return Unit instead of the class type
10
7
ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.*.<init>" ), // scala.math.Numeric.CharIsIntegral.<init>; before: (): scala.math.Numeric.CharIsIntegral; after: (): Unit
11
8
12
9
// Probably OK
13
- ProblemMatcher .make(ProblemKind .InternalError , " scala.*" ),
14
- ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.*$extension" ),
15
10
ProblemMatcher .make(ProblemKind .IncompatibleSelfTypeChange , " scala.*" ),
16
11
17
12
// Probably OK: object singleton type
18
13
ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.mutable.BitSet.bitSetFactory" ),
19
14
20
- // Probably OK: by-name arguments in signatures
21
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.App.delayedInit" ),
22
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.Array.fill" ),
23
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.*.fill" ),
24
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.*.getOrElse" ),
25
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.*.getOrElseUpdate" ),
26
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.jdk.Accumulator.fill" ),
27
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.Option.*" ), // fold, toLeft, toRight, unless, when
28
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.Option.getOrElse" ),
29
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.Option.orElse" ),
30
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.Predef.*" ), // assert, assume, require, Ensuring.ensuring
31
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.util.*.getOrElse" ),
32
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.util.*.orElse" ),
33
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.util.Try.apply" ),
34
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.util.Using.apply" ),
35
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.util.Using.resources" ),
36
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.concurrent.Future.*" ), // apply, delegate
37
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.Console.*" ), // withErr, withIn, withOut
38
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.DelayedInit.delayedInit" ),
39
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.io.Codec.wrap" ),
40
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.util.PropertiesTrait.*" ), // envOrElse, envOrSome, propOrElse, scalaPropOrElse
41
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.util.Either.cond" ),
42
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.util.Either.filterOrElse" ),
43
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.util.control.Breaks.*" ), // breakable, TryBlock.catchBreak, tryBreakable
44
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.util.control.Exception.Catch.*" ), // andFinally, apply,either, opt, withTry
45
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.util.control.Exception.*" ), // failAsValue, Finally.and, ultimately
46
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.util.control.TailCalls.tailcall" ),
47
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.util.DynamicVariable.withValue" ),
48
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.sys.process.FileProcessLogger.*" ), // buffer, err, out
49
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.sys.process.ProcessImpl.Spawn.apply" ),
50
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.sys.process.processInternal.*" ), // onInterrupt, onIOInterrupt
51
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.sys.process.ProcessLogger.*" ), // buffer, err, out
52
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.sys.PropImpl.or" ),
53
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.sys.ShutdownHookThread.apply" ),
54
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.sys.SystemProperties.*" ), // exclusively, wrapAccess
55
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.immutable.LazyList.*" ), // cons.apply, continually, Deferrer.#::, iterate, lazyAppendedAll, toDeferrer
56
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.immutable.Stream.*" ), // append, cons.apply, continually, lazyAppendedAll, toDeferrer
57
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.Iterator.*" ), // ++, concat, continually, GroupedIterator.withPadding
58
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.concurrent.BlockContext.*" ), // blockOn, withBlockContext
59
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.sys.process.ProcessBuilder.FileBuilder.#<<" ),
60
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.sys.process.ProcessBuilderImpl.FileImpl.#<<" ),
61
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.sys.process.ProcessBuilder.Sink.#<" ),
62
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.sys.process.ProcessBuilder.Source.#>" ),
63
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.sys.process.ProcessCreation.apply" ),
64
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.concurrent.BatchingExecutorStatics.MissingParentBlockContext.blockOn" ),
65
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.sys.process.ProcessImpl.CompoundProcess.runInterruptible" ),
66
- ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.util.hashing.Hashing.fromFunction" ),
67
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.IterableOnceOps.aggregate" ),
68
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.sys.package.addShutdownHook" ),
69
- ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.mutable.HashTable.init" ),
70
-
71
15
// Probably OK: Case class with varargs
72
16
ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.StringContext.parts" ), // before: scala.<repeated>[Predef.String]; after: scala.collection.immutable.Seq[Predef.String] @scala.annotation.internal.Repeated
73
17
74
- // Probably OK: default parameter
75
- ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.*$default$*" ),
76
-
77
18
// Problem: secondary constructors?
78
19
ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.*.<init>" ),
79
20
@@ -143,5 +84,71 @@ object TastyMiMaFilters {
143
84
ProblemMatcher .make(ProblemKind .NewAbstractMember , " scala.collection.convert.impl.*_=" ),
144
85
ProblemMatcher .make(ProblemKind .NewAbstractMember , " scala.math.ScalaNumericConversions.underlying" ),
145
86
ProblemMatcher .make(ProblemKind .NewAbstractMember , " scala.*.superscala$*$*$$*" ),
87
+
88
+ ProblemMatcher .make(ProblemKind .InternalError , " scala.concurrent.duration.package.*" ),
89
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.package.:+.unapply" ),
90
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.package.+:.unapply" ),
91
+ ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.SortedMapOps.++" ),
92
+ ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.SortedMapOps.concat" ),
93
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.SortedMapOps.map" ),
94
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.SortedMapOps.+" ),
95
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.SortedMapOps.collect" ),
96
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.SortedMapOps.sortedMapFromIterable" ),
97
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.SortedMapOps.flatMap" ),
98
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.SortedMapOps.WithFilter.map" ),
99
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.SortedMapOps.WithFilter.flatMap" ),
100
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.StrictOptimizedSortedMapOps.collect" ),
101
+ ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.StrictOptimizedSortedMapOps.concat" ),
102
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.StrictOptimizedSortedMapOps.map" ),
103
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.StrictOptimizedSortedMapOps.+" ),
104
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.StrictOptimizedSortedMapOps.flatMap" ),
105
+ ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.SortedSetFactoryDefaults.fromSpecific" ),
106
+ ProblemMatcher .make(ProblemKind .InternalError , " scala.collection.SeqView.prependedAll" ),
107
+ ProblemMatcher .make(ProblemKind .InternalError , " scala.collection.SeqView.appendedAll" ),
108
+ ProblemMatcher .make(ProblemKind .InternalError , " scala.collection.SeqView.concat" ),
109
+ ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.SortedMapFactoryDefaults.fromSpecific" ),
110
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.AnyStepper.ofParIntStepper" ),
111
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.AnyStepper.ofParLongStepper" ),
112
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.AnyStepper.ofParDoubleStepper" ),
113
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.StepperShape.parUnbox" ),
114
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.BitSetOps.map" ),
115
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.BitSetOps.collect" ),
116
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.BitSetOps.diff" ),
117
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.BitSetOps.intersect" ),
118
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.BitSetOps.^" ),
119
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.BitSetOps.concat" ),
120
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.BitSetOps.fromBitMaskNoCopy" ),
121
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.BitSetOps.xor" ),
122
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.BitSetOps.flatMap" ),
123
+ ProblemMatcher .make(ProblemKind .NewAbstractMember , " scala.collection.BitSetOps.fromBitMaskNoCopy" ),
124
+ ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.runtime.Tuple2Zipped.Ops.zipped" ),
125
+ ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.runtime.Tuple3Zipped.Ops.zipped" ),
126
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.immutable.SortedMapOps.updated" ),
127
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.immutable.SortedMapOps.updatedWith" ),
128
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.immutable.SortedMapOps.transform" ),
129
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.immutable.SortedMapOps.+" ),
130
+ ProblemMatcher .make(ProblemKind .NewAbstractMember , " scala.collection.immutable.SortedMapOps.updated" ),
131
+ ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.immutable.StrictOptimizedSortedMapOps.concat" ),
132
+ ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.immutable.BitSet.bitSetFactory" ),
133
+ ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.generic.IsMap.apply" ),
134
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.convert.impl.BitSetStepper.from" ),
135
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.convert.impl.*.semiclone" ),
136
+ ProblemMatcher .make(ProblemKind .NewAbstractMember , " scala.collection.convert.impl.*.semiclone" ),
137
+ ProblemMatcher .make(ProblemKind .FinalMember , " scala.collection.convert.AsJavaExtensions.*AsJava" ),
138
+ ProblemMatcher .make(ProblemKind .FinalMember , " scala.collection.convert.AsScalaExtensions.*AsScala" ),
139
+ ProblemMatcher .make(ProblemKind .FinalMember , " scala.collection.convert.StreamExtensions.*" ),
140
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.convert.StreamExtensions.StepperHasParStream" ),
141
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.convert.JavaCollectionWrappers.SetWrapper.iterator" ),
142
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.*.stepper" ),
143
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.*.valueStepper" ),
144
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.*.keyStepper" ),
145
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.*.efficientStepper" ),
146
+ ProblemMatcher .make(ProblemKind .NewAbstractMember , " scala.jdk.Accumulator.efficientStepper" ),
147
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.mutable.SortedMapOps.updated" ),
148
+ ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.mutable.UnrolledBuffer.classTagCompanion" ),
149
+ ProblemMatcher .make(ProblemKind .IncompatibleTypeChange , " scala.collection.mutable.UnrolledBuffer.Unrolled.<init>$default$4" ),
150
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.util.hashing.Hashing.fromFunction" ),
151
+ ProblemMatcher .make(ProblemKind .RestrictedVisibilityChange , " scala.concurrent.duration.Deadline.copy$default$1" ),
152
+ ProblemMatcher .make(ProblemKind .MissingTermMember , " scala.collection.concurrent.FailedNode.string" ),
146
153
)
147
154
}
0 commit comments