diff options
author | Nikolay Tatarinov <5min4eq.unity@gmail.com> | 2018-03-25 11:36:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-25 11:36:01 +0300 |
commit | f45f11b88fe00ea6fecb44e7da0aadbfffd01b25 (patch) | |
tree | f2cc04c4ac4244fc336aea1ed1fd523cfac30513 /scalalib/test/resources | |
parent | f8cea556bf2d0989c371d104f3c862c666ebdfce (diff) | |
download | mill-f45f11b88fe00ea6fecb44e7da0aadbfffd01b25.tar.gz mill-f45f11b88fe00ea6fecb44e7da0aadbfffd01b25.tar.bz2 mill-f45f11b88fe00ea6fecb44e7da0aadbfffd01b25.zip |
try to fix classloading issues on runLocal and test with java 9 (#255)
* fix class loading for inprocess in java 9
* always add rt jar in case of java 9
* move all custom classloading logic into mill.util.ClassLoader
* add comments explaining parent class loader changes and comment in tests pointing to original issue
Diffstat (limited to 'scalalib/test/resources')
-rw-r--r-- | scalalib/test/resources/hello-world/core/src/Main.scala | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scalalib/test/resources/hello-world/core/src/Main.scala b/scalalib/test/resources/hello-world/core/src/Main.scala index 32706d44..d86f4da8 100644 --- a/scalalib/test/resources/hello-world/core/src/Main.scala +++ b/scalalib/test/resources/hello-world/core/src/Main.scala @@ -1,5 +1,8 @@ import scala.collection._ import java.nio.file.{Files, Paths} +import java.sql.Date +import java.time.LocalDate +import javax.swing.JButton import Main.{args, greeting} object Main0{ @@ -10,7 +13,11 @@ object Main0{ } } object Main extends App { - + // testing correct loading of java standard modules in java 9 + // https://github.com/lihaoyi/mill/issues/251 + new JButton("hello from javax") + val now = Date.valueOf(LocalDate.now()) + println(s"Today is the date: ${now}") val person = Person.fromString("rockjam:25") val greeting = s"hello ${person.name}, your age is: ${person.age}" println(greeting) |