Skip to content

Commit 8e79b98

Browse files
committed
Updated to use scala 2.12.17.
1 parent 16de34b commit 8e79b98

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
<properties>
2222
<scala.major.version>2.12</scala.major.version>
23-
<scala.minor.version>16</scala.minor.version>
23+
<scala.minor.version>17</scala.minor.version>
2424
<scala.version>${scala.major.version}.${scala.minor.version}</scala.version>
25-
<scalatest.version>3.2.12</scalatest.version>
25+
<scalatest.version>3.2.14</scalatest.version>
2626
<scala.maven.plugin.version>4.3.0</scala.maven.plugin.version>
2727

2828
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

src/it/lift/src/test/scala/demo/helloworld/AppTest.scala

+7-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,14 @@ class AppTest extends AnyFunSuite {
4343

4444
if (file.isFile && handledXml(file.getName)) {
4545
try {
46-
XML.loadFile(file)
46+
val f = javax.xml.parsers.SAXParserFactory.newInstance()
47+
f.setFeature("http://apache.org/xml/features/disallow-doctype-decl", false)
48+
val p = f.newSAXParser()
49+
XML.withSAXParser(p).loadFile(file)
4750
} catch {
48-
case e: _root_.org.xml.sax.SAXParseException => failed = file :: failed
51+
case e: _root_.org.xml.sax.SAXParseException =>
52+
e.printStackTrace()
53+
failed = file :: failed
4954
}
5055
}
5156
if (file.isFile && handledXHtml(file.getName)) {

0 commit comments

Comments
 (0)