Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (4)
Preserve the compatibility with Java 8 when compiling with Java 11
· fb64df85
Emmanuel Bourg
authored
Nov 16, 2018
fb64df85
Removed the get-orig-source target in debian/rules
· ccae5ab3
Emmanuel Bourg
authored
Nov 16, 2018
ccae5ab3
Use salsa.debian.org Vcs-* URLs
· 68ed8dbe
Emmanuel Bourg
authored
Nov 16, 2018
68ed8dbe
Upload to unstable
· 537cc2a7
Emmanuel Bourg
authored
Nov 16, 2018
537cc2a7
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
537cc2a7
scala (2.11.12-4) unstable; urgency=medium
* Team upload.
* Preserve the compatibility with Java 8 when compiling with Java 11
* Removed the get-orig-source target in debian/rules
* Use salsa.debian.org Vcs-* URLs
-- Emmanuel Bourg <ebourg@apache.org> Fri, 16 Nov 2018 00:45:01 +0100
scala (2.11.12-3) unstable; urgency=medium
* Team upload.
...
...
debian/control
View file @
537cc2a7
...
...
@@ -22,8 +22,8 @@ Build-Depends:
scala-parser-combinators,
scala-xml
Standards-Version: 4.2.1
Vcs-Git: https://
anonscm
.debian.org/
git/pkg-java
/scala.git
Vcs-Browser: https://
anonscm
.debian.org/
cgit/pkg-java
/scala
.git
Vcs-Git: https://
salsa
.debian.org/
java-team
/scala.git
Vcs-Browser: https://
salsa
.debian.org/
java-team
/scala
Homepage: http://www.scala-lang.org/
Package: scala
...
...
debian/patches/0018-bytebuffer-backward-compatibility.patch
0 → 100644
View file @
537cc2a7
Description: Preserves the compatibility with Java 8 when compiling with Java 11
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/src/compiler/scala/tools/nsc/io/SourceReader.scala
+++ b/src/compiler/scala/tools/nsc/io/SourceReader.scala
@@ -8,7 +8,7 @@
package io
import java.io.{ FileInputStream, InputStream, IOException }
-import java.nio.{ByteBuffer, CharBuffer}
+import java.nio.{Buffer, ByteBuffer, CharBuffer}
import java.nio.channels.{ ReadableByteChannel, Channels }
import java.nio.charset.{CharsetDecoder, CoderResult}
import scala.tools.nsc.reporters._
@@ -58,13 +58,13 @@
/** Reads the specified byte channel. */
protected def read(input: ReadableByteChannel): Array[Char] = {
val decoder: CharsetDecoder = this.decoder.reset()
- val bytes: ByteBuffer = this.bytes; bytes.clear()
- var chars: CharBuffer = this.chars; chars.clear()
+ val bytes: ByteBuffer = this.bytes; bytes.asInstanceOf[Buffer].clear().asInstanceOf[ByteBuffer]
+ var chars: CharBuffer = this.chars; chars.asInstanceOf[Buffer].clear().asInstanceOf[CharBuffer]
var endOfInput = false
while (!endOfInput ) {
endOfInput = input.read(bytes) < 0
- bytes.flip()
+ bytes.asInstanceOf[Buffer].flip()
chars = decode(decoder, bytes, chars, endOfInput)
}
terminate(flush(decoder, chars))
@@ -73,7 +73,7 @@
/** Reads the specified byte buffer. */
protected def read(bytes: ByteBuffer): Array[Char] = {
val decoder: CharsetDecoder = this.decoder.reset()
- val chars: CharBuffer = this.chars; chars.clear()
+ val chars: CharBuffer = this.chars; chars.asInstanceOf[Buffer].clear().asInstanceOf[CharBuffer]
terminate(flush(decoder, decode(decoder, bytes, chars, endOfInput = true)))
}
@@ -125,7 +125,7 @@
def flush(decoder: CharsetDecoder, chars: CharBuffer): CharBuffer = {
val result: CoderResult = decoder.flush(chars)
if (result.isUnderflow()) {
- chars.flip()
+ chars.asInstanceOf[Buffer].flip()
chars
} else {
if (result.isError()) throw new IOException(result.toString())
@@ -139,7 +139,7 @@
* content but with an increased capacity.
*/
private def increaseCapacity(buffer: CharBuffer): CharBuffer = {
- buffer.flip()
+ buffer.asInstanceOf[Buffer].flip()
val capacity = 2 * buffer.capacity()
CharBuffer.allocate(capacity).put(buffer)
}
debian/patches/series
View file @
537cc2a7
...
...
@@ -9,3 +9,4 @@
0015-java9-compatibility.patch
0016-nobootcp-by-default.patch
0017-bug912393.patch
0018-bytebuffer-backward-compatibility.patch
debian/rules
View file @
537cc2a7
...
...
@@ -50,6 +50,3 @@ override_dh_compress:
dh_compress -X.js -X.scala
gzip --best -n debian/scala/usr/share/scala-2.11/man/man1/*.1
get-orig-source:
uscan --download-current-version --rename