Skip to content

Commit

Permalink
[Truffle] fix Time's internal method visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
pitr-ch committed Feb 10, 2016
1 parent 0fb9f9e commit 042e2f2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.jcodings.specific.UTF8Encoding;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.jruby.runtime.Visibility;
import org.jruby.truffle.RubyContext;
import org.jruby.truffle.core.*;
import org.jruby.truffle.core.rubinius.TimePrimitiveNodes;
Expand Down Expand Up @@ -131,7 +132,7 @@ public DateTimeZone getDateTimeZone(int offset) {

}

@CoreMethod(names = "add_internal!", required = 2)
@CoreMethod(names = "add_internal!", required = 2, visibility = Visibility.PROTECTED)
public abstract static class AddInternalNode extends CoreMethodArrayArgumentsNode {

public AddInternalNode(RubyContext context, SourceSection sourceSection) {
Expand All @@ -148,7 +149,7 @@ public DynamicObject addInternal(DynamicObject time, long seconds, long nanoSeco
}
}

@CoreMethod(names = "dup_internal", required = 1)
@CoreMethod(names = "dup_internal", required = 1, visibility = Visibility.PROTECTED)
public static abstract class DupInternalNode extends CoreMethodArrayArgumentsNode {

@Child private AllocateObjectNode allocateObjectNode;
Expand Down

0 comments on commit 042e2f2

Please sign in to comment.