Skip to content

Commit

Permalink
Fixed an incompatibility with Java 9
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/jailer/code/trunk@1125 3dd849cd-670e-4645-a7cd-dd197c8d0e81
  • Loading branch information
rwisser committed Dec 21, 2016
1 parent d41ffbd commit 23d35bd
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 14 deletions.
3 changes: 3 additions & 0 deletions releasenotes-dbeauty.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2.8.1
- Fixed an incompatibility with Java 9.

2.8
- Data browser tables are now sortable.

Expand Down
3 changes: 3 additions & 0 deletions releasenotes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
6.3.1
- Fixed an incompatibility with Java 9.

6.3
- Data browser tables are now sortable.
- Multithreaded import.
Expand Down
2 changes: 1 addition & 1 deletion src/main/net/sf/jailer/Jailer.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public class Jailer {
/**
* The Jailer version.
*/
public static final String VERSION = "6.3";
public static final String VERSION = "6.3.1";

/**
* The Jailer application name.
Expand Down
Binary file added src/main/net/sf/jailer/resource/jailer.bmp
Binary file not shown.
7 changes: 1 addition & 6 deletions src/main/net/sf/jailer/ui/ExtractionModelFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;

import jsyntaxpane.DefaultSyntaxKit;
import net.sf.jailer.CommandLineParser;
import net.sf.jailer.Configuration;
import net.sf.jailer.DDLCreator;
Expand Down Expand Up @@ -1642,11 +1641,7 @@ public void run() {
customizeNimbus();
} catch (Exception x) {
}
try {
DefaultSyntaxKit.initKit();
} catch (Throwable x) {
x.printStackTrace();
}
UIUtil.initSyntaxKit();

String file = null;
try {
Expand Down
12 changes: 12 additions & 0 deletions src/main/net/sf/jailer/ui/UIUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
import javax.swing.SwingUtilities;
import javax.swing.WindowConstants;

import jsyntaxpane.DefaultSyntaxKit;

import net.sf.jailer.CommandLineParser;
import net.sf.jailer.Jailer;
import net.sf.jailer.database.Session;
Expand Down Expand Up @@ -841,5 +843,15 @@ public static void checkTermination() {
}
System.exit(0);
}

public static void initSyntaxKit() {
try {
if (Integer.parseInt(System.getProperty("java.version", "1.7.0").split("\\.")[1]) < 9) {
DefaultSyntaxKit.initKit();
}
} catch (Throwable e) {
e.printStackTrace();
}
}

}
7 changes: 1 addition & 6 deletions src/main/net/sf/jailer/ui/databrowser/DataBrowser.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;

import jsyntaxpane.DefaultSyntaxKit;
import net.sf.jailer.CommandLineParser;
import net.sf.jailer.Jailer;
import net.sf.jailer.database.Session;
Expand Down Expand Up @@ -1388,11 +1387,7 @@ public static void main(final String args[]) {
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
try {
DefaultSyntaxKit.initKit();
} catch (Throwable e) {
e.printStackTrace();
}
UIUtil.initSyntaxKit();
try {
CommandLineParser.parse(args, true);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
public class DataBrowserContext {

private static String STANDALONE_APP_NAME = "DBeauty";
private static String STANDALONE_APP_VERSION = "2.8";
private static String STANDALONE_APP_VERSION = "2.8.1";

private static boolean supportsDataModelUpdates = true;
private static Boolean standAlone = null;
Expand Down

0 comments on commit 23d35bd

Please sign in to comment.