Revisions

gist: 160271 Download_button fork
public
Public Clone URL: git://gist.github.com/160271.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 17211b8a4832cd6538b660fef6eb4a93ca2a8857 Mon Sep 17 00:00:00 2001
From: Michael S. Klishin <michael@novemberain.com>
Date: Mon, 3 Aug 2009 04:53:36 +0400
Subject: [PATCH] Add compatibility attributes to annotations on RubyArray#pop and RubyArray#pop19
 
 * This fixes the build on 187 branch
---
 src/org/jruby/RubyArray.java | 4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
 
diff --git a/src/org/jruby/RubyArray.java b/src/org/jruby/RubyArray.java
index d944d4f..e698466 100644
--- a/src/org/jruby/RubyArray.java
+++ b/src/org/jruby/RubyArray.java
@@ -1155,7 +1155,7 @@ public class RubyArray extends RubyObject implements List {
     /** rb_ary_pop
      *
      */
- @JRubyMethod(name = "pop")
+ @JRubyMethod(name = "pop", compat = CompatVersion.RUBY1_8)
     public IRubyObject pop(ThreadContext context) {
         modifyCheck();
 
@@ -1176,7 +1176,7 @@ public class RubyArray extends RubyObject implements List {
         }
     }
 
- @JRubyMethod(name = "pop")
+ @JRubyMethod(name = "pop", compat = CompatVersion.RUBY1_9)
     public IRubyObject pop19(ThreadContext context, IRubyObject num) {
         modifyCheck();
         RubyArray result = makeSharedFirst(context, num, true, context.getRuntime().getArray());
--
1.6.3.3.363.g725cf7