From 2ad39e07daf154cf0cf8b6d27d81205b0c730b13 Mon Sep 17 00:00:00 2001 From: Lothar Haeger Date: Sun, 17 Nov 2019 13:15:43 +0100 Subject: [PATCH] Add OpenJDK11 compatibility --- build.gradle | 1 + services/build.gradle | 2 +- services/src/main/java/org/jd/gui/view/component/TextPage.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 3532cd62..9ac8fc44 100644 --- a/build.gradle +++ b/build.gradle @@ -105,6 +105,7 @@ task proguard(type: proguard.gradle.ProGuardTask, dependsOn: 'jar') { injars jar.archivePath outjars 'build/libs/' + project.name + '-' + project.version + '-min.jar' libraryjars System.getProperty('java.home') + '/lib/rt.jar' + libraryjars System.getProperty('java.home') + '/jmods/' } // Java executable wrapper for Windows // diff --git a/services/build.gradle b/services/build.gradle index 917fc7ad..6ed884b9 100644 --- a/services/build.gradle +++ b/services/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'java' dependencies { - compile 'com.fifesoft:rsyntaxtextarea:2.5.6' + compile 'com.fifesoft:rsyntaxtextarea:3.0.4' compile 'org.ow2.asm:asm:7.1' compile 'org.jd:jd-core:' + parent.jdCoreVersion compile project(':api') diff --git a/services/src/main/java/org/jd/gui/view/component/TextPage.java b/services/src/main/java/org/jd/gui/view/component/TextPage.java index 09e0ac74..bbae1e42 100644 --- a/services/src/main/java/org/jd/gui/view/component/TextPage.java +++ b/services/src/main/java/org/jd/gui/view/component/TextPage.java @@ -27,7 +27,7 @@ public void copy() { if (textArea.getSelectionStart() == textArea.getSelectionEnd()) { getToolkit().getSystemClipboard().setContents(new StringSelection(""), null); } else { - textArea.copyAsRtf(); + textArea.copyAsStyledText(); } }