stuie382 / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

JSyntaxPane doesn't run in Java 5 #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When running RESTClient with JSyntaxPane 0.9.3 in Java 5, I am getting this
trace:

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError:
java.util.Properties.stringPropertyNames()Ljava/util/Set;
    at jsyntaxpane.DefaultSyntaxKit.initKit(DefaultSyntaxKit.java:185)
    at jsyntaxpane.DefaultSyntaxKit.<clinit>(DefaultSyntaxKit.java:64)
    at
org.wiztools.restclient.ui.JSyntaxPaneScriptEditor.<init>(JSyntaxPaneScriptEdito
r.java:16)
    at
org.wiztools.restclient.ui.ScriptEditorFactory.getXMLScriptEditor(ScriptEditorFa
ctory.java:19)

I think java.util.Properties has introduced stringPropertyNames() method in
version 6. We have to find corresponding method in Java and update the
JSyntaxPane code so that it is compatible with Java 5.

Original issue reported on code.google.com by subwiz on 15 Nov 2008 at 7:55

GoogleCodeExporter commented 9 years ago
This is similar to issue 32.  But it there may be more than this method which is
available in 1.6 only.

Original comment by ayman.al...@gmail.com on 16 Nov 2008 at 5:23