From da770f7cbbe83d81ec3fcdcdc455a9e258870ec3 Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Sun, 26 Apr 2020 17:40:26 +0200 Subject: [PATCH] Replacement methods for the class sun.misc.VM --- .../api/sun/misc/ReplacementForVM.java | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/de/inetsoftware/jwebassembly/api/sun/misc/ReplacementForVM.java diff --git a/src/de/inetsoftware/jwebassembly/api/sun/misc/ReplacementForVM.java b/src/de/inetsoftware/jwebassembly/api/sun/misc/ReplacementForVM.java new file mode 100644 index 0000000..274debd --- /dev/null +++ b/src/de/inetsoftware/jwebassembly/api/sun/misc/ReplacementForVM.java @@ -0,0 +1,43 @@ +/* + * Copyright 2020 Volker Berlin (i-net software) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package de.inetsoftware.jwebassembly.api.sun.misc; + +import de.inetsoftware.jwebassembly.api.annotation.Replace; + +/** + * Replacement methods for the class sun.misc.VM + * + * @author Volker Berlin + */ +public class ReplacementForVM { + + /** + * Replacement for VM static constructor + */ + @Replace( "sun/misc/VM.()V" ) + static void clinit() { + // nothing + } + + /** + * Replacement for VM.getSavedProperty(String) + */ + @Replace( "sun/misc/VM.getSavedProperty(Ljava/lang/String;)Ljava/lang/String;" ) + static String getSavedProperty( String key ) { + return null; + } + +}