File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
src/main/java/org/truffleruby/interop Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 13
13
describe "Truffle::Interop" do
14
14
it "has a method for each InteropLibrary message" do
15
15
all_methods = Primitive . interop_library_all_methods
16
- all_methods -= %w[ getFactory getUncached ]
17
16
expected = all_methods . map do |name |
18
17
name = name . gsub ( /([a-z])([A-Z])/ ) { "#{ $1} _#{ $2. downcase } " }
19
18
if name . start_with? ( 'is_' , 'has_' , 'fits_' )
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ protected RubyArray allMethodsOfInteropLibrary() {
123
123
private static String [] publicInteropLibraryMethods () {
124
124
List <String > methods = new ArrayList <>();
125
125
for (Method method : InteropLibrary .class .getDeclaredMethods ()) {
126
- if (Modifier .isPublic (method .getModifiers ())) {
126
+ if (Modifier .isPublic (method .getModifiers ()) && ! Modifier . isStatic ( method . getModifiers ()) ) {
127
127
if (!methods .contains (method .getName ())) {
128
128
methods .add (method .getName ());
129
129
}
You can’t perform that action at this time.
0 commit comments