Skip to content

Commit

Permalink
Merge pull request #9 in G/truffle from ~MATTHIAS.G.GRIMMER_ORACLE.CO…
Browse files Browse the repository at this point in the history
…M/truffle:master to master

* commit '9817eb71bd7f41b3b3d87f9955a6848ad45bd2ec':
  Introduce a new version of Interop DSL - deprecate @AcceptMessage
  • Loading branch information
Matthias Grimmer committed Apr 14, 2016
2 parents 4476ec4 + 9817eb7 commit 1a94cdd
Show file tree
Hide file tree
Showing 119 changed files with 3,416 additions and 2,847 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
package com.oracle.truffle.api.dsl.test.interop;

import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.interop.AcceptMessage;

@AcceptMessage(value = "WRITE", receiverType = ValidTruffleObject.class, language = TestTruffleLanguage.class)
public final class WriteNode3 extends BaseWriteNode3 {
@SuppressWarnings("deprecation")
@com.oracle.truffle.api.interop.AcceptMessage(value = "WRITE", receiverType = ValidTruffleObject10.class, language = TestTruffleLanguage.class)
public final class AcceptMessageTest extends AcceptMessageTestBase {

@Override
protected int access(VirtualFrame frame, Object receiver, Object name, Object value) {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
package com.oracle.truffle.api.dsl.test.interop;

import com.oracle.truffle.api.dsl.test.ExpectError;
import com.oracle.truffle.api.interop.AcceptMessage;
import com.oracle.truffle.api.interop.MessageResolution;

@ExpectError("Missing isInstance method in class com.oracle.truffle.api.dsl.test.interop.InvalidTruffleObject")
@MessageResolution(receiverType = InvalidTruffleObject.class, language = TestTruffleLanguage.class)
public class InvalidTruffleObjectMR {

@ExpectError({"Unknown message type: unknownMsg"})
@AcceptMessage(value = "unknownMsg", receiverType = ValidTruffleObject.class, language = TestTruffleLanguage.class)
public final class UnknownMessage extends BaseUnknownMessage {
}
Loading

0 comments on commit 1a94cdd

Please sign in to comment.