File tree 4 files changed +8
-15
lines changed
sbt-dotty/src/dotty/tools/sbtplugin
4 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,14 @@ object Build {
61
61
val referenceVersion = " 0.18.1-bin-20190825-6960f8d-NIGHTLY"
62
62
63
63
val baseVersion = " 0.18.1"
64
- val baseSbtDottyVersion = " 0.3.4 "
64
+ val baseSbtDottyVersion = " 0.3.5 "
65
65
66
66
// Versions used by the vscode extension to create a new project
67
67
// This should be the latest published releases.
68
68
// TODO: Have the vscode extension fetch these numbers from the Internet
69
69
// instead of hardcoding them ?
70
70
val publishedDottyVersion = referenceVersion
71
- val publishedSbtDottyVersion = " 0.3.3 "
71
+ val publishedSbtDottyVersion = " 0.3.4 "
72
72
73
73
/** scala-library version required to compile Dotty.
74
74
*
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ object DottyPlugin extends AutoPlugin {
168
168
val Def = sbt.Def
169
169
override def projectSettings : Seq [Setting [_]] = {
170
170
Seq (
171
- isDotty := scalaVersion.value.startsWith(" 0." ),
171
+ isDotty := scalaVersion.value.startsWith(" 0." ) || scalaVersion.value.startsWith( " 3. " ) ,
172
172
173
173
scalaOrganization := {
174
174
if (isDotty.value)
Original file line number Diff line number Diff line change 1
- start at -5: java.lang.ArrayIndexOutOfBoundsException: -5
2
- start at -1: java.lang.ArrayIndexOutOfBoundsException: -1
1
+ start at -5: OOB
2
+ start at -1: OOB
3
3
start at limit: ok
4
4
start at limit-1: ok
5
5
first 10: ok
Original file line number Diff line number Diff line change @@ -9,16 +9,9 @@ object Test extends App {
9
9
" ok"
10
10
} catch {
11
11
case e : ArrayIndexOutOfBoundsException =>
12
- // Special-case printing this exception because the toString changed in Java 11
13
- val java11toString = """ java.lang.ArrayIndexOutOfBoundsException: Index (-?\d+).*""" .r
14
-
15
- e.toString match {
16
- case java11toString(index) =>
17
- s " java.lang.ArrayIndexOutOfBoundsException: $index"
18
- case str =>
19
- str
20
- }
21
- case e : Exception => e.toString
12
+ " OOB"
13
+ case e : Exception =>
14
+ e.toString
22
15
}
23
16
println(" %s: %s" format (label, status))
24
17
}
You can’t perform that action at this time.
0 commit comments