Skip to content

Commit

Permalink
Merge pull request #91 from boris-spas/sl_update_vm-19.3.1
Browse files Browse the repository at this point in the history
update 19.3.1
  • Loading branch information
boris-spas authored Jan 20, 2020
2 parents 15521b9 + 2269508 commit 9244b52
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jdk:
- openjdk11

env:
- GRAALVM_VERSION="19.3.0" GRAALVM_JAVA_VERSION="8"
- GRAALVM_VERSION="19.3.0" GRAALVM_JAVA_VERSION="11"
- GRAALVM_VERSION="19.3.1" GRAALVM_JAVA_VERSION="8"
- GRAALVM_VERSION="19.3.1" GRAALVM_JAVA_VERSION="11"
- GRAALVM_VERSION="NONE" SL_BUILD_NATIVE="false"

matrix:
exclude:
- env: GRAALVM_VERSION="19.3.0" GRAALVM_JAVA_VERSION="8"
- env: GRAALVM_VERSION="19.3.1" GRAALVM_JAVA_VERSION="8"
jdk: openjdk11
os: linux
- env: GRAALVM_VERSION="19.3.0" GRAALVM_JAVA_VERSION="11"
- env: GRAALVM_VERSION="19.3.1" GRAALVM_JAVA_VERSION="11"
jdk: openjdk11
os: linux
# Travis does not provide an adequate jdk8 on mac (mac versioning issue)
Expand Down
4 changes: 2 additions & 2 deletions component/make_component.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ mkdir -p "$COMPONENT_DIR/META-INF"
{
echo "Bundle-Name: Simple Language";
echo "Bundle-Symbolic-Name: com.oracle.truffle.sl";
echo "Bundle-Version: 19.3.0";
echo 'Bundle-RequireCapability: org.graalvm; filter:="(&(graalvm_version=19.3.0)(os_arch=amd64))"';
echo "Bundle-Version: 19.3.1";
echo 'Bundle-RequireCapability: org.graalvm; filter:="(&(graalvm_version=19.3.1)(os_arch=amd64))"';
echo "x-GraalVM-Polyglot-Part: True"
} > "$COMPONENT_DIR/META-INF/MANIFEST.MF"

Expand Down
2 changes: 1 addition & 1 deletion component/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.oracle</groupId>
<artifactId>simplelanguage-graalvm-component</artifactId>
<version>19.3.0-SNAPSHOT</version>
<version>19.3.1-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<m2e.apt.activation>jdt_apt</m2e.apt.activation>
Expand Down
2 changes: 1 addition & 1 deletion language/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.oracle</groupId>
<artifactId>simplelanguage-parent</artifactId>
<version>19.3.0-SNAPSHOT</version>
<version>19.3.1-SNAPSHOT</version>
</parent>
<artifactId>simplelanguage</artifactId>
<profiles>
Expand Down
2 changes: 1 addition & 1 deletion launcher/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.oracle</groupId>
<artifactId>simplelanguage-parent</artifactId>
<version>19.3.0-SNAPSHOT</version>
<version>19.3.1-SNAPSHOT</version>
</parent>
<artifactId>launcher</artifactId>
<build>
Expand Down
2 changes: 1 addition & 1 deletion native/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.oracle</groupId>
<artifactId>simplelanguage-graalvm-native</artifactId>
<version>19.3.0-SNAPSHOT</version>
<version>19.3.1-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<m2e.apt.activation>jdt_apt</m2e.apt.activation>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.oracle</groupId>
<artifactId>simplelanguage-parent</artifactId>
<version>19.3.0-SNAPSHOT</version>
<version>19.3.1-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<m2e.apt.activation>jdt_apt</m2e.apt.activation>
<graalvm.version>19.3.0</graalvm.version>
<graalvm.version>19.3.1</graalvm.version>
</properties>
<packaging>pom</packaging>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion sl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

VERSION="19.3.0"
VERSION="19.3.1"

MAIN_CLASS="com.oracle.truffle.sl.launcher.SLMain"
SCRIPT_HOME="$(cd "$(dirname "$0")" && pwd -P)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,9 @@ private static Snippet loadScript(
private static Source createSource(final String resourceName) throws IOException {
int slashIndex = resourceName.lastIndexOf('/');
String scriptName = slashIndex >= 0 ? resourceName.substring(slashIndex + 1) : resourceName;
final Reader in = new InputStreamReader(SLTCKLanguageProvider.class.getResourceAsStream(resourceName), "UTF-8");
return Source.newBuilder(ID, in, scriptName).build();
try (Reader in = new InputStreamReader(SLTCKLanguageProvider.class.getResourceAsStream(resourceName), "UTF-8")) {
return Source.newBuilder(ID, in, scriptName).build();
}
}

private static Value eval(final Context context, final String fncDecl, final String functionName) {
Expand Down

0 comments on commit 9244b52

Please sign in to comment.