Description of problem: While trying to compile oldrhino (from JPackage), I ran into a missing method in libgcj's JTextComponent: viewToModel(java.awt.Point). Version-Release number of selected component (if applicable): libgcj-4.0.0-0.34 How reproducible: Always. Steps to Reproduce: 1. Here's an example of a class that uses this: import java.awt.BorderLayout; import java.awt.Container; import java.awt.Frame; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JTextArea; public class Test extends JFrame { private JTextArea fileTextArea; private JButton getButton; public static void main(String[] args) { Frame f = new Test(); f.show(); } public Test() { Container contentPane = getContentPane(); fileTextArea = new JTextArea(24, 80); getButton = new JButton("Press me"); getButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { getButtonPressed(); } }); contentPane.add(fileTextArea, BorderLayout.CENTER); contentPane.add(getButton, BorderLayout.SOUTH); pack(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } }); } public void getButtonPressed() { int position = fileTextArea.viewToModel(fileTextArea .getLocationOnScreen()); System.out.println(position); } } 2. javac Test.java Actual results: 2. ERROR in Test.java (at line 47) int position = fileTextArea.viewToModel(fileTextArea ^^^^^^^^^^^ The method viewToModel(Point) is undefined for the type JTextArea Expected results: No output.
*** Bug 150772 has been marked as a duplicate of this bug. ***
Fixed in gcc CVS HEAD and gcc-4_0-branch. I'll ping Jakub to make sure this patch goes into the FC4test2 gcc rpms.