forked from scala-native/scala-native
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make `StackTraceElement` closer to Java's impl * Add initial version of the test interface There are still many rough edges and issues with it. See comments in the code for the different issues to tackle :) * Teach Travis how to build scalacheck * scalafmt * Cleanup * Remove debug info from serializers * Fix how tests are instantiated We were assuming that tests are always inside objects, but that's not true. Fortunately, fingerprints tell us all we need to instantiate the tests. * Don't do `rebuild` twice in Travis CI * scalafmt * Correctly convert variants of `struct sockaddr` Previously we would just copy a pre-defined number of bytes, now matter what the actual underlying struct was. Now, we use the length of the input struct to determine its type, and correctly convert to the operating system implementation, so that no information is lost. * %s/PreLoaded/Preloaded/g * Remove `stubs` project * Remove impls in `Class.getField` and `Field.get` * Deprecate `JSExportDescendent{Classes,Objects}` * Simpler serialization * Add implicit classes for `sockaddr` and friends * Give names to fields of structs for sockets * Fix review comments * Prefix test name with `_root_.` * Add NativeFramework to run our unit tests * Remove utest and scalacheck tests * Remove old, dead code
- Loading branch information
Showing
114 changed files
with
2,179 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package java.lang | ||
|
||
class ClassLoader protected (parent: ClassLoader) { | ||
def this() = this(null) | ||
def loadClass(name: String): Class[_] = null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
javalib/src/main/scala/java/util/concurrent/locks/AbstractOwnableSynchronizer.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package java.util.concurrent.locks | ||
|
||
import java.io.Serializable | ||
|
||
abstract class AbstractOwnableSynchronizer protected () extends Serializable { | ||
private var exclusiveOwner: Thread = _ | ||
|
||
protected final def setExclusiveOwnerThread(thread: Thread): Unit = | ||
exclusiveOwner = thread | ||
protected final def getExclusiveOwnerThread(): Thread = | ||
exclusiveOwner | ||
} |
16 changes: 16 additions & 0 deletions
16
javalib/src/main/scala/java/util/concurrent/locks/AbstractQueuedSynchronizer.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package java.util.concurrent.locks | ||
|
||
abstract class AbstractQueuedSynchronizer protected () | ||
extends AbstractOwnableSynchronizer() { | ||
|
||
def acquireSharedInterruptibly(arg: Int): Unit = () | ||
|
||
def releaseSharedInterruptibly(arg: Int): Boolean = true | ||
|
||
def releaseShared(arg: Int): Boolean = true | ||
|
||
override def toString(): String = "AbstractQueuedSynchronizer" | ||
|
||
def tryAcquireSharedNanos(arg: Int, nanos: Long): Boolean = true | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package java.lang.reflect | ||
|
||
class Field { | ||
def get(obj: Object): Object = ??? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.