• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

i-net-software / JWebAssembly / 534

pending completion
534

push

travis-ci-com

Horcrux7
replace static constructor für MethodHandles.

1 of 1 new or added line in 1 file covered. (100.0%)

5933 of 6826 relevant lines covered (86.92%)

0.87 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/de/inetsoftware/jwebassembly/module/nativecode/ReplacementForMethodHandles.java
1
/*
2
   Copyright 2023 Volker Berlin (i-net software)
3

4
   Licensed under the Apache License, Version 2.0 (the "License");
5
   you may not use this file except in compliance with the License.
6
   You may obtain a copy of the License at
7

8
       http://www.apache.org/licenses/LICENSE-2.0
9

10
   Unless required by applicable law or agreed to in writing, software
11
   distributed under the License is distributed on an "AS IS" BASIS,
12
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
   See the License for the specific language governing permissions and
14
   limitations under the License.
15

16
*/
17
package de.inetsoftware.jwebassembly.module.nativecode;
18

19
import java.lang.invoke.MethodHandles.Lookup;
20

21
import de.inetsoftware.jwebassembly.api.annotation.Replace;
22

23
/**
24
 * Replacement for java.lang.invoke.MethodHandles
25
 *
26
 * @author Volker Berlin
27
 */
28
public class ReplacementForMethodHandles {
×
29

30
    /**
31
     * Replacement for static code.
32
     */
33
    @Replace( "java/lang/invoke/MethodHandles.<clinit>()V" )
34
    private static void init() {
35
        // nothing
36
    }
×
37

38
    /**
39
     * Replacement for static lookup().
40
     */
41
    @Replace( "java/lang/invoke/MethodHandles.lookup()Ljava/lang/invoke/MethodHandles$Lookup;" )
42
    static Lookup lookup() {
43
        return null;
×
44
    }
45

46
    /**
47
     * Replacement for static lookup().
48
     */
49
    @Replace( "java/lang/invoke/MethodHandles$Lookup.findVarHandle(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;" )
50
    Object findVarHandle(Class<?> recv, String name, Class<?> type) {
51
        return null;
×
52
    }
53

54
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc