Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Report OpenJ9 as unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
comp500 committed Jul 2, 2020
1 parent ef0441f commit aa3d069
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'

version = '1.0.10'
version = '1.0.11'
group = 'link.infra.jumploader' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'jumploader'

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
modGroup=link.infra.jumploader
modVersion=1.0.10
modVersion=1.0.11
modBaseName=jumploader
11 changes: 10 additions & 1 deletion src/main/java/link/infra/jumploader/Jumploader.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import java.util.Set;

public class Jumploader implements ITransformationService {
public static final String VERSION = "1.0.10";
public static final String VERSION = "1.0.11";
public static final String USER_AGENT = "Jumploader/" + VERSION;

private final Logger LOGGER = LogManager.getLogger();
Expand Down Expand Up @@ -67,6 +67,15 @@ private static <T> T reflectField(Object destObj, String name) throws NoSuchFiel
public void onLoad(@Nonnull IEnvironment env, @Nonnull Set<String> set) {
LOGGER.info("Jumploader " + VERSION + " initialising, discovering environment...");

// OpenJ9 is currently unsupported - it does not allow bypassing the reflection blacklist to change the system classloader
// See FabricLoaderReflectionHack.java
if (System.getProperty("java.vm.name", "").toLowerCase().contains("openj9")) {
LOGGER.fatal("OpenJ9 is currently unsupported with Jumploader");
LOGGER.fatal("Please use Hotspot, or install your desired modloader directly instead of jumploading it!");
LOGGER.fatal("See https://fabricmc.net/wiki/install for a Fabric installation guide");
System.exit(1);
}

// Get the game arguments
ParsedArguments argsParsedTemp;
// Very bad reflection, don't try this at home!!
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "jumploader",
"version": "1.0.10",
"version": "1.0.11",

"name": "Jumploader",
"description": "Allows the use of Fabric mods in Twitch modpacks, by loading Fabric as if it were a Forge mod.",
Expand Down

0 comments on commit aa3d069

Please sign in to comment.