Skip to content

Commit

Permalink
Merge branch 'java15'
Browse files Browse the repository at this point in the history
  • Loading branch information
rjolly committed Jun 17, 2022
2 parents 925574a + c7ef017 commit 1cfba07
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
19 changes: 17 additions & 2 deletions init.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ function classpath() {
return java.lang.System.getProperty("java.class.path");
}

// requires ch.epfl.lamp#dotty-compiler_0.27;0.27.0-RC1
// require org.scala-lang#scala3-compiler_3;3.1.3

function dotc(srcDir, destDir, options) {
if (srcDir == undefined) {
Expand All @@ -426,7 +426,22 @@ function dotc(srcDir, destDir, options) {
Packages.dotty.tools.dotc.Main.process(["-color:never", "-classpath", classpath(), "-d", dir].concat(options).concat(files));
}

// requires org.scala-lang#scala-compiler;2.11.0-M6
function dottydoc(srcDir, destDir, options) {
if (srcDir == undefined) {
srcDir = ".";
}
if (destDir == undefined) {
destDir = srcDir;
}
if (options == undefined) {
options = [];
}
files = fileset(srcDir, ".*\.tasty");
dir = pathToFile(destDir);
(new Packages.dotty.tools.scaladoc.Main).run(["-classpath", classpath(), "-d", dir].concat(options).concat(files));
}

// require org.scala-lang#scala-compiler;2.11.0-M6

function scalac(srcDir, destDir, options) {
if (srcDir == undefined) {
Expand Down
2 changes: 1 addition & 1 deletion notepad/src/linoleum/notepad/Frame.java
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ public void propertyChange(final PropertyChangeEvent evt) {

void setNumber(final int n) {
if (length > 0) {
setProgress(100 * n / length);
setProgress((int)(100l * n / length));
}
}

Expand Down

0 comments on commit 1cfba07

Please sign in to comment.