Sophie

Sophie

distrib > Mandriva > cooker > i586 > media > main-release-src > by-pkgid > 6365d29b5864b77f9ea41bf45312fc02 > files > 4

jrefactory-2.8.9-4.6.3.src.rpm

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21880

libgcj's javax.swing.text.JTextComponent has no read() method.
Fiddle with the arguments to hit JEditorPane's read() instead.

--- jrefactory/src/org/acm/seguin/ide/standalone/JRefactory.java~	2003-10-08 07:52:44.000000000 +0100
+++ jrefactory/src/org/acm/seguin/ide/standalone/JRefactory.java	2005-06-02 15:38:36.000000000 +0100
@@ -530,7 +530,7 @@
 
       if (file.exists()) {
          try {
-            pane.read(new java.io.FileReader(file), file);
+            pane.read(new java.io.FileInputStream(file), file);
             fileForPane = file.getCanonicalPath();
          } catch (IOException e) {
             JOptionPane.showMessageDialog(pane, e.getMessage(), "JRefactory", JOptionPane.INFORMATION_MESSAGE);