rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
this.target = target;
public CommandRunner(Class cx, Method method, Object[] args) { this.cx = cx; this.method = method; this.args = args; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d97ea65afc43a38038b73aa2db904647056bfb84/ThreadCommandInvoker.java/clean/shell/src/shell/org/jnode/shell/ThreadCommandInvoker.java
public void run() { try { // System.err.println("Registering shell in new thread."); // to // ensure // access // to // the // command // shell // in /...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d97ea65afc43a38038b73aa2db904647056bfb84/ThreadCommandInvoker.java/clean/shell/src/shell/org/jnode/shell/ThreadCommandInvoker.java
Object obj = null; if(!Modifier.isStatic(method.getModifiers())) { obj = cx.newInstance(); } AccessController.doPrivileged(new InvokeAction(method, obj, args));
AccessController.doPrivileged( new InvokeAction(method, target, args));
public void run() { try { // System.err.println("Registering shell in new thread."); // to // ensure // access // to // the // command // shell // in /...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d97ea65afc43a38038b73aa2db904647056bfb84/ThreadCommandInvoker.java/clean/shell/src/shell/org/jnode/shell/ThreadCommandInvoker.java
Throwable tex = ex.getTargetException(); if (tex instanceof SyntaxErrorException) { try { Help.getInfo(cx).usage(); } catch (HelpException ex1) { ex1.printStackTrace(); } err.println(tex.getMessage()); unblock(); } else if (tex instanceof VmExit) { err.println(tex.getMessage()); unblock(); } else { err.println("Except...
Throwable tex = ex.getTargetException(); if (tex instanceof SyntaxErrorException) { try { Help.getInfo(cx).usage(); } catch (HelpException ex1) { ex1.printStackTrace(); } err.println(tex.getMessage()); unblock(); } else if (tex instanceof VmExit) { err.println(tex.getMessage()); unblock(); } else { err.println("Except...
public void run() { try { // System.err.println("Registering shell in new thread."); // to // ensure // access // to // the // command // shell // in /...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d97ea65afc43a38038b73aa2db904647056bfb84/ThreadCommandInvoker.java/clean/shell/src/shell/org/jnode/shell/ThreadCommandInvoker.java
err.println("Exception in command"); ex.printStackTrace(err); unblock();
err.println("Exception in command"); ex.printStackTrace(err); unblock(); } catch (Error ex) { err.println("Error in command"); ex.printStackTrace(err); unblock();
public void run() { try { // System.err.println("Registering shell in new thread."); // to // ensure // access // to // the // command // shell // in /...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d97ea65afc43a38038b73aa2db904647056bfb84/ThreadCommandInvoker.java/clean/shell/src/shell/org/jnode/shell/ThreadCommandInvoker.java
InputStream inputStream = System.in; InputStream nextInputStream = null; PrintStream errStream = System.err; PrintStream outputStream = null;
StreamHolder streams = new StreamHolder(System.in, null, System.err);
public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d97ea65afc43a38038b73aa2db904647056bfb84/ThreadCommandInvoker.java/clean/shell/src/shell/org/jnode/shell/ThreadCommandInvoker.java
Method method;
public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d97ea65afc43a38038b73aa2db904647056bfb84/ThreadCommandInvoker.java/clean/shell/src/shell/org/jnode/shell/ThreadCommandInvoker.java
ByteArrayOutputStream byteArrayOutputStream = null;
public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d97ea65afc43a38038b73aa2db904647056bfb84/ThreadCommandInvoker.java/clean/shell/src/shell/org/jnode/shell/ThreadCommandInvoker.java
try { method = cmdInfo.getCommandClass().getMethod( EXECUTE_METHOD, EXECUTE_ARG_TYPES); if (cmdLine.sendToOutFile()) { File file = new File(cmdLine.getOutFileName()); try { FileOutputStream fileOutputStream = new FileOutputStream( file); outputStream = new PrintStream(fileOutputStream); } catch (SecurityException e) ...
cr = buildExecuteRunner(cmdName, cmdLine, cmdInfo, streams, i != commands.length - 1); if (cr == null) { cr = buildMainRunner(cmdName, cmdLine, cmdInfo); } if (cr == null) { err.println("Class " + cmdInfo.getCommandClass().getName() + " has no suitable 'execute' or 'main' method"); break;
public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d97ea65afc43a38038b73aa2db904647056bfb84/ThreadCommandInvoker.java/clean/shell/src/shell/org/jnode/shell/ThreadCommandInvoker.java
public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d97ea65afc43a38038b73aa2db904647056bfb84/ThreadCommandInvoker.java/clean/shell/src/shell/org/jnode/shell/ThreadCommandInvoker.java
public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d97ea65afc43a38038b73aa2db904647056bfb84/ThreadCommandInvoker.java/clean/shell/src/shell/org/jnode/shell/ThreadCommandInvoker.java
if (outputStream != null && outputStream != System.out) { outputStream.close();
if (streams.outputStream != null && streams.outputStream != System.out) { streams.outputStream.close();
public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d97ea65afc43a38038b73aa2db904647056bfb84/ThreadCommandInvoker.java/clean/shell/src/shell/org/jnode/shell/ThreadCommandInvoker.java
} catch (NoSuchMethodException ex) { err.println("Alias class has no main method " + cmdName);
} catch (NoGo ex) { err.println("Exception occurred while prepareing to run command"); ex.getCause().printStackTrace(err);
public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d97ea65afc43a38038b73aa2db904647056bfb84/ThreadCommandInvoker.java/clean/shell/src/shell/org/jnode/shell/ThreadCommandInvoker.java
nextInputStream = null;
public void invoke(String cmdLineStr) { commandShell.addCommandToHistory(cmdLineStr); InputStream inputStream = System.in; // will also be dynamic later InputStream nextInputStream = null; PrintStream errStream = System.err; // will also be dynamic later PrintStream outputStream =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d97ea65afc43a38038b73aa2db904647056bfb84/ThreadCommandInvoker.java/clean/shell/src/shell/org/jnode/shell/ThreadCommandInvoker.java
return Class.forName(cmd);
final ClassLoader cl = Thread.currentThread().getContextClassLoader(); return cl.loadClass(cmd);
protected Class getCommandClass(String cmd) throws ClassNotFoundException { try { return aliasMgr.getAliasClass(cmd); } catch (NoSuchAliasException ex) { return Class.forName(cmd); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/964b69e3c5d0861662f58b7bf2c24e2388ca0247/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
if (is_trying) return null; try { is_trying = true;
public static synchronized JarFile get (URL url) throws IOException { JarFile jf = (JarFile) cache.get (url); if (jf != null) return jf; if (is_trying) return null; try { is_trying = true; if ("file".equals (url.getProtocol())) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Connection.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/jar/Connection.java
jf = new JarFile (f, true, ZipFile.OPEN_READ);
jf = new JarFile (f, true, ZipFile.OPEN_READ | ZipFile.OPEN_DELETE);
public static synchronized JarFile get (URL url) throws IOException { JarFile jf = (JarFile) cache.get (url); if (jf != null) return jf; if (is_trying) return null; try { is_trying = true; if ("file".equals (url.getProtocol())) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Connection.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/jar/Connection.java
} finally { is_trying = false; }
public static synchronized JarFile get (URL url) throws IOException { JarFile jf = (JarFile) cache.get (url); if (jf != null) return jf; if (is_trying) return null; try { is_trying = true; if ("file".equals (url.getProtocol())) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Connection.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/jar/Connection.java
public static ComponentUI createUI(final JComponent c) { return new BasicTabbedPaneUI(); }
public static ComponentUI createUI(JComponent c) { return new BasicTabbedPaneUI(); }
public static ComponentUI createUI(final JComponent c) { return new BasicTabbedPaneUI(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java
public Dimension getPreferredSize(JComponent c) { JTabbedPane p = (JTabbedPane) c; Dimension d = new Dimension(50,50); for (int i=0;i<p.getTabCount();i++) { Component comp = p.getComponentAt(i); Dimension pr = comp.getPreferredSize(); d.width = Math.max(d.width, comp.getWidth()); d.height = Math.max(d.height, comp....
public Dimension getPreferredSize(JComponent c) { return layoutManager.preferredLayoutSize(tabPane); }
public Dimension getPreferredSize(JComponent c) { JTabbedPane p = (JTabbedPane) c; Dimension d = new Dimension(50,50); for (int i=0;i<p.getTabCount();i++) { Component comp = p.getComponentAt(i); Dimension pr = comp.getPreferredSize(); d.width = Math.max(d.width, comp.getWidth()); d.height = Math.max(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java
public Rectangle getTabBounds(JTabbedPane pane, int index) { return null; }
public Rectangle getTabBounds(JTabbedPane pane, int i) { return rects[i]; }
public Rectangle getTabBounds(JTabbedPane pane, int index) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java
{ return 0; }
{ return runCount; }
public int getTabRunCount(JTabbedPane pane) { return 0; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java
public void installUI(final JComponent c) { super.installUI(c); }
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JTabbedPane) { tabPane = (JTabbedPane) c; installComponents(); installDefaults(); installListeners(); installKeyboardActions(); layoutManager = createLayoutManager(); tabPane.setLayout(layoutManager); tabPane.layout(); } }
public void installUI(final JComponent c) { super.installUI(c); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java
{ return 0; }
{ Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first = 0; int last = lastTabInRun(tabCount, currRun); for (int j = first; j <= last; j++) { if (getTabBound...
public int tabForCoordinate(JTabbedPane pane, int x, int y) { return 0; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java
getLayeredPane().add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER);
if (menuBar != null) jlPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER);
public void setJMenuBar(JMenuBar m) { menuBar = m; getLayeredPane().add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java
{ }
{ layers = new TreeMap (); componentToLayer = new Hashtable (); }
JLayeredPane() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java
public boolean isPressed() { return pressed; }
public boolean isPressed() { return (stateMask & PRESSED) == PRESSED; }
public boolean isPressed() { return pressed; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultButtonModel.java
public void fireActionPerformed(ActionEvent event) { for (int i = 0; i < actions.size(); i++) { ActionListener a = (ActionListener) actions.get(i); a.actionPerformed(event); } }
public void fireActionPerformed(ActionEvent e) { EventListener[] ll = listenerList.getListeners(ActionListener.class); for (int i = 0; i < ll.length; i++) ((ActionListener)ll[i]).actionPerformed(e); }
public void fireActionPerformed(ActionEvent event) { for (int i = 0; i < actions.size(); i++) { ActionListener a = (ActionListener) actions.get(i); a.actionPerformed(event); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultButtonModel.java
Button(String label)
Button()
Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/Button.java/clean/core/src/classpath/java/java/awt/Button.java
this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();
this("");
Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/Button.java/clean/core/src/classpath/java/java/awt/Button.java
public void setSystemId(String systemID);
public void setSystemId(String systemId);
public void setSystemId(String systemID);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/Result.java/buggy/core/src/classpath/javax/javax/xml/transform/Result.java
s.setOpaque(true);
protected void installDefaults(JSeparator s) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); shadow = defaults.getColor("Separator.shadow"); highlight = defaults.getColor("Separator.highlight"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicSeparatorUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicSeparatorUI.java
public VMFileHandle open(File file, VMOpenMode mode) throws IOException { FSEntry entry = getEntry(file); if ((entry != null) && !entry.isFile()) { throw new IOException("Not a file " + file); } if (entry == null) { if (mode.canWrite()) { // Try to create the file final FSEntry parent = getEntry(file.get...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e5feafa37e1a62508dee42bc82e95fa0628309b7/FileSystemAPIImpl.java/buggy/fs/src/fs/org/jnode/fs/service/def/FileSystemAPIImpl.java
public Iterator<FSEntry> iterator()
public Iterator<? extends FSEntry> iterator()
public Iterator<FSEntry> iterator() throws IOException;
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c56cb877a222d0f75caa8f0f3840ae408e8f5265/FSDirectory.java/buggy/fs/src/fs/org/jnode/fs/FSDirectory.java
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); header.setBackground(defaults.getColor("TableHeader.background")); header.setForeground(defaults.getColor("TableHeader.foreground")); header.setFont(defaults.getFont("TableHeader.font")); cellBorder = defaults.getBorder("TableHeader.cellBorder");
LookAndFeel.installColorsAndFont(header, "TableHeader.background", "TableHeader.foreground", "TableHeader.font"); cellBorder = UIManager.getBorder("TableHeader.cellBorder");
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); header.setBackground(defaults.getColor("TableHeader.background")); header.setForeground(defaults.getColor("TableHeader.foreground")); header.setFont(defaults.getFont("TableHeader.font")); cellBorder = defaults...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicTableHeaderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableHeaderUI.java
gfx.setClip(oldClip);
public void paint(Graphics gfx, JComponent c) { TableColumnModel cmod = header.getColumnModel(); int ncols = cmod.getColumnCount(); if (ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableCellRenderer defaultRend = header.getDefaultRenderer(); for (int i = 0; i < ncols; ++i) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicTableHeaderUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableHeaderUI.java
"TextPane.selectionForeground", new ColorUIResource(Color.white)/*,
"TextPane.selectionForeground", new ColorUIResource(Color.white),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"Viewport.font", new FontUIResource("Dialog", Font.PLAIN, 12)*/
"Viewport.font", new FontUIResource("Dialog", Font.PLAIN, 12)
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
bundles = new LinkedList (); listeners = new HashSet (); defaultLocale = Locale.getDefault ();
public UIDefaults() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/UIDefaults.java/buggy/core/src/classpath/javax/javax/swing/UIDefaults.java
return new DummyIcon();
return getCheckBoxIcon();
public static Icon getCheckBoxMenuItemIcon() { return new DummyIcon(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicIconFactory.java
return new DummyIcon();
return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3));...
public static Icon getMenuArrowIcon() { return new DummyIcon(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicIconFactory.java
return new DummyIcon();
return getRadioButtonIcon();
public static Icon getRadioButtonMenuItemIcon() { return new DummyIcon(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicIconFactory.java
modifiers = EventModifier.extend(modifiers);
modifiersEx = EventModifier.extend(modifiers) & EventModifier.NEW_MASK;
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); modifiers = EventModifier.extend(modifiers); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cfd5d26ab69af1fe494534bdf03f35be22c13bd8/KeyEvent.java/buggy/core/src/classpath/java/java/awt/event/KeyEvent.java
{ get_listeners().addElement(listener); }
{ listenerList.add (ListSelectionListener.class, listener); }
public void addListSelectionListener(ListSelectionListener listener) { get_listeners().addElement(listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultListSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultListSelectionModel.java
{ get_listeners().removeElement(listener); }
{ listenerList.remove (ListSelectionListener.class, listener); }
public void removeListSelectionListener(ListSelectionListener listener) { get_listeners().removeElement(listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultListSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultListSelectionModel.java
throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR);
throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);
public Entity declareEntity(String name, String publicId, String systemId, String notation) { DomEntity entity; if (name.charAt(0) == '%' || "[dtd]".equals(name)) { return null; } if (isReadonly()) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomDoctype.java/buggy/core/src/classpath/gnu/gnu/xml/dom/DomDoctype.java
throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR);
throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);
public Notation declareNotation(String name, String publicId, String systemId) { DomNotation notation; if (isReadonly()) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); } getNotations(); DomDocument.checkName...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomDoctype.java/buggy/core/src/classpath/gnu/gnu/xml/dom/DomDoctype.java
super(max, 0.75f, true); max_entries = max; }
super(max, 0.75f, true); max_entries = max; }
public LRUCache(int max) { super(max, 0.75f, true); max_entries = max; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return size() > max_entries; }
return size() > max_entries; }
protected boolean removeEldestEntry(Map.Entry eldest) { return size() > max_entries; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
refCount = 0; this.focusHandler = new FocusHandler(this); JNodeGenericPeer.enableQueue(eventQueue); }
refCount = 0; this.focusHandler = new FocusHandler(this); JNodeGenericPeer.enableQueue(eventQueue); }
public JNodeToolkit() { refCount = 0; this.focusHandler = new FocusHandler(this); JNodeGenericPeer.enableQueue(eventQueue); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
SpeakerUtils.beep(); }
SpeakerUtils.beep(); }
public void beep() { SpeakerUtils.beep(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
ImageObserver observer) { return 0; }
ImageObserver observer) { return 0; }
public int checkImage(Image image, int width, int height, ImageObserver observer) { // TODO Auto-generated method stub return 0; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return config.createCompatibleImage(width, height); }
return config.createCompatibleImage(width, height); }
public BufferedImage createCompatibleImage(int width, int height) { return config.createCompatibleImage(width, height); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return null; }
return null; }
public Font createFont(int format, InputStream stream) { // TODO Auto-generated method stub return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
if (len >= 4 && data[offset + 0] == 'G' && data[offset + 1] == 'I' && data[offset + 2] == 'F' && data[offset + 3] == '8') { try { return createImage(new GIFDecoder(new ByteArrayInputStream( data, offset, len))); } catch (LinkageError err) { } }
if (len >= 4 && data[offset + 0] == 'G' && data[offset + 1] == 'I' && data[offset + 2] == 'F' && data[offset + 3] == '8') { try { return createImage(new GIFDecoder(new ByteArrayInputStream( data, offset, len))); } catch (LinkageError err) { } }
public Image createImage(byte[] data, int offset, int len) { if (len >= 4 && data[offset + 0] == 'G' && data[offset + 1] == 'I' && data[offset + 2] == 'F' && data[offset + 3] == '8') { try { return createImage(new GIFDecoder(new ByteArrayInputStream( ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return null; }
return null; }
public Image createImage(byte[] data, int offset, int len) { if (len >= 4 && data[offset + 0] == 'G' && data[offset + 1] == 'I' && data[offset + 2] == 'F' && data[offset + 3] == '8') { try { return createImage(new GIFDecoder(new ByteArrayInputStream( ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return super.createImageProducer(url); }
return super.createImageProducer(url); }
public ImageProducer createImageProducer(URL url) { // TODO Auto-generated method stub return super.createImageProducer(url); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
throw new RuntimeException("Not implemented"); }
throw new RuntimeException("Not implemented"); }
public VolatileImage createVolatileImage(int width, int height) { throw new RuntimeException("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { this.keyboardHandler.close(); } if (mouseHandler != null) { this.mouseHandler.close(); } if (graphics != null) { this.graphics.close(); } this.api = null; this.graphics = null; this.keyboard...
refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { this.keyboardHandler.close(); } if (mouseHandler != null) { this.mouseHandler.close(); } if (graphics != null) { this.graphics.close(); } this.api = null; this.graphics = null; this.keyboard...
private final synchronized int decRefCount(boolean forceClose) { refCount--; log.debug("refCount.dec=" + refCount); if ((refCount == 0) || forceClose) { onClose(); if (keyboardHandler != null) { this.keyboardHandler.close(); } if (mouse...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
while (graphics != null) { try { wait(); } catch (InterruptedException ex) { } } }
while (graphics != null) { try { wait(); } catch (InterruptedException ex) { } } }
private final synchronized void doWaitUntilStopped() { while (graphics != null) { try { wait(); } catch (InterruptedException ex) { // Ignore } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
Map keyMap = new HashMap(attrs); keyMap.put("JNodeToolkit.RequestedFontName", name); if (fontCache.containsKey(keyMap)) return (ClasspathFontPeer) fontCache.get(keyMap); else { ClasspathFontPeer newPeer = new JNodeFontPeer(name, attrs); fontCache.put(keyMap, newPeer); return newPeer; } }
Map keyMap = new HashMap(attrs); keyMap.put("JNodeToolkit.RequestedFontName", name); if (fontCache.containsKey(keyMap)) return (ClasspathFontPeer) fontCache.get(keyMap); else { ClasspathFontPeer newPeer = new JNodeFontPeer(name, attrs); fontCache.put(keyMap, newPeer); return newPeer; } }
public ClasspathFontPeer getClasspathFontPeer(String name, Map attrs) { Map keyMap = new HashMap(attrs); // We don't know what kind of "name" the user requested (logical, face, // family), and we don't actually *need* to know here. The worst case // involves failure to consolidate fonts ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
AttributedString str, FontRenderContext frc) { throw new UnsupportedOperationException(); }
AttributedString str, FontRenderContext frc) { throw new UnsupportedOperationException(); }
public ClasspathTextLayoutPeer getClasspathTextLayoutPeer( AttributedString str, FontRenderContext frc) { throw new UnsupportedOperationException(); // TODO Auto-generated method stub //return super.getClasspathTextLayoutPeer(str, frc); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return null; }
return null; }
public ColorModel getColorModel() { // TODO Auto-generated method stub return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return this.focusHandler; }
return this.focusHandler; }
public final FocusHandler getFocusHandler() { return this.focusHandler; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return super.getFont(name, attrs); }
return super.getFont(name, attrs); }
public Font getFont(String name, Map attrs) { // TODO Auto-generated method stub return super.getFont(name, attrs); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
Font[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment() .getAllFonts(); String[] names = new String[fonts.length]; for (int i = 0; i < fonts.length; i++) { names[i] = fonts[i].getName(); } return names; }
Font[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment() .getAllFonts(); String[] names = new String[fonts.length]; for (int i = 0; i < fonts.length; i++) { names[i] = fonts[i].getName(); } return names; }
public String[] getFontList() { Font[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment() .getAllFonts(); String[] names = new String[fonts.length]; for (int i = 0; i < fonts.length; i++) { names[i] = fonts[i].getName(); } return names; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
try { return (FontManager) InitialNaming.lookup(FontManager.NAME); } catch (NamingException ex) { return null; } }
try { return (FontManager) InitialNaming.lookup(FontManager.NAME); } catch (NamingException ex) { return null; } }
public FontManager getFontManager() { try { return (FontManager) InitialNaming.lookup(FontManager.NAME); } catch (NamingException ex) { return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
final FontManager fm = getFontManager(); if (fm != null) { return fm.getFontMetrics(font); } else { return null; } }
final FontManager fm = getFontManager(); if (fm != null) { return fm.getFontMetrics(font); } else { return null; } }
public FontMetrics getFontMetrics(Font font) { final FontManager fm = getFontManager(); if (fm != null) { return fm.getFontMetrics(font); } else { return null; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return getFontPeer(name, style, 12); }
return getFontPeer(name, style, 12); }
protected final FontPeer getFontPeer(String name, int style) { // All fonts get a default size of 12 if size is not specified. return getFontPeer(name, style, 12); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return this.graphics; }
return this.graphics; }
public final Surface getGraphics() { return this.graphics; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return config; }
return config; }
public GraphicsConfiguration getGraphicsConfiguration() { return config; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() {
log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() {
public Image getImage(final String filename) { log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final String userDir = (String) AccessController ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image = getImage(new URL("file:" + new File(userDir, filename))); return image != null ? image : getImage(new URL("file:" + new File(filename).getAbsolutePath())); } catch (MalformedURLEx...
public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image = getImage(new URL("file:" + new File(userDir, filename))); return image != null ? image : getImage(new URL("file:" + new File(filename).getAbsolutePath())); } catch (MalformedURLEx...
public Image getImage(final String filename) { log.debug("getImage(" + filename + ")"); return (Image) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { try { final String userDir = (String) AccessController ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image = getImage(new URL("file:" + new File(userDir, filename))); return image != null ? image : getImage(new URL("file:" + new File(filename).getAbsolutePath())); } catch (MalformedURLException e) { e.printSt...
try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image = getImage(new URL("file:" + new File(userDir, filename))); return image != null ? image : getImage(new URL("file:" + new File(filename).getAbsolutePath())); } catch (MalformedURLException e) { e.printSt...
public Object run() { try { final String userDir = (String) AccessController .doPrivileged(new GetPropertyAction("user.dir")); Image image = getImage(new URL("file:" + new File(userDir, filename))); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
try { final URLConnection conn = url.openConnection(); final String type = conn.getContentType(); if ("image/gif".equals(type) || url.getFile().toLowerCase().endsWith(".gif")) { try { return createImage(new GIFDecoder(conn .getInputStream(), true)); } catch (LinkageError e) { return createImage((ImageProducer) (conn ....
try { final URLConnection conn = url.openConnection(); final String type = conn.getContentType(); if ("image/gif".equals(type) || url.getFile().toLowerCase().endsWith(".gif")) { try { return createImage(new GIFDecoder(conn .getInputStream(), true)); } catch (LinkageError e) { return createImage((ImageProducer) (conn ....
public Object run() { try { final URLConnection conn = url.openConnection(); final String type = conn.getContentType(); if ("image/gif".equals(type) || url.getFile().toLowerCase().endsWith(".gif")) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
final Toolkit tk = Toolkit.getDefaultToolkit(); if (tk instanceof JNodeToolkit) { return (JNodeToolkit) tk; } else { throw new AWTError("Toolkit is not a JNodeToolkit"); } }
final Toolkit tk = Toolkit.getDefaultToolkit(); if (tk instanceof JNodeToolkit) { return (JNodeToolkit) tk; } else { throw new AWTError("Toolkit is not a JNodeToolkit"); } }
public static JNodeToolkit getJNodeToolkit() { final Toolkit tk = Toolkit.getDefaultToolkit(); if (tk instanceof JNodeToolkit) { return (JNodeToolkit) tk; } else { throw new AWTError("Toolkit is not a JNodeToolkit"); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return new JNodeGraphicsEnvironment(); }
return new JNodeGraphicsEnvironment(); }
public GraphicsEnvironment getLocalGraphicsEnvironment() { return new JNodeGraphicsEnvironment(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return null; }
return null; }
public PrintJob getPrintJob(Frame frame, String title, Properties props) { // TODO Auto-generated method stub return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return 0; }
return 0; }
public int getScreenResolution() { // TODO Auto-generated method stub return 0; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return new Dimension(screenSize); }
return new Dimension(screenSize); }
public Dimension getScreenSize() { return new Dimension(screenSize); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return null; }
return null; }
public Clipboard getSystemClipboard() { // TODO Auto-generated method stub return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return eventQueue; }
return eventQueue; }
protected EventQueue getSystemEventQueueImpl() { return eventQueue; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return top; }
return top; }
public Frame getTop() { return top; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
final Frame f = getTop(); if (f == null) { return null; } Component c = f.findComponentAt(x, y); if (c == null) { c = f; } return c; }
final Frame f = getTop(); if (f == null) { return null; } Component c = f.findComponentAt(x, y); if (c == null) { c = f; } return c; }
public Component getTopComponentAt(int x, int y) { final Frame f = getTop(); if (f == null) { return null; } Component c = f.findComponentAt(x, y); if (c == null) { c = f; } return c; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
final boolean initialize; final int rc; synchronized (this) { refCount++; rc = refCount; initialize = (refCount == 1); } log.debug("refCount.inc=" + rc); if (initialize) { final JNodeFrameBufferDevice dev = (JNodeFrameBufferDevice) GraphicsEnvironment .getLocalGraphicsEnvironment().getDefaultScreenDevice(); if (dev == ...
final boolean initialize; final int rc; synchronized (this) { refCount++; rc = refCount; initialize = (refCount == 1); } log.debug("refCount.inc=" + rc); if (initialize) { final JNodeFrameBufferDevice dev = (JNodeFrameBufferDevice) GraphicsEnvironment .getLocalGraphicsEnvironment().getDefaultScreenDevice(); if (dev == ...
private final int incRefCount() { final boolean initialize; final int rc; synchronized (this) { refCount++; rc = refCount; initialize = (refCount == 1); } log.debug("refCount.inc=" + rc); if (initialize) { final JNodeFrameBufferDe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
screenSize.width = config.getConfig().getScreenWidth(); screenSize.height = config.getConfig().getScreenHeight(); this.keyboardHandler = new KeyboardHandler(); this.mouseHandler = new MouseHandler(dev.getDevice(), screenSize);
screenSize.width = config.getConfig().getScreenWidth(); screenSize.height = config.getConfig().getScreenHeight(); this.keyboardHandler = new KeyboardHandler(); this.mouseHandler = new MouseHandler(dev.getDevice(), screenSize);
private final int incRefCount() { final boolean initialize; final int rc; synchronized (this) { refCount++; rc = refCount; initialize = (refCount == 1); } log.debug("refCount.inc=" + rc); if (initialize) { final JNodeFrameBufferDe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
onInitialize(); this.refCount = rc; } catch (DeviceException ex) { decRefCount(true); throw (AWTError) new AWTError(ex.getMessage()).initCause(ex); } catch (UnknownConfigurationException ex) { decRefCount(true); throw (AWTError) new AWTError(ex.getMessage()).initCause(ex); } catch (AlreadyOpenException ex) { decRefCoun...
onInitialize(); this.refCount = rc; } catch (DeviceException ex) { decRefCount(true); throw (AWTError) new AWTError(ex.getMessage()).initCause(ex); } catch (UnknownConfigurationException ex) { decRefCount(true); throw (AWTError) new AWTError(ex.getMessage()).initCause(ex); } catch (AlreadyOpenException ex) { decRefCoun...
private final int incRefCount() { final boolean initialize; final int rc; synchronized (this) { refCount++; rc = refCount; initialize = (refCount == 1); } log.debug("refCount.inc=" + rc); if (initialize) { final JNodeFrameBufferDe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
final Toolkit tk = getDefaultToolkit(); if (!(tk instanceof JNodeToolkit)) { throw new AWTError("Toolkit is not a JNodeToolkit"); } return (((JNodeToolkit) tk).graphics != null); }
final Toolkit tk = getDefaultToolkit(); if (!(tk instanceof JNodeToolkit)) { throw new AWTError("Toolkit is not a JNodeToolkit"); } return (((JNodeToolkit) tk).graphics != null); }
public static boolean isGuiActive() { final Toolkit tk = getDefaultToolkit(); if (!(tk instanceof JNodeToolkit)) { throw new AWTError("Toolkit is not a JNodeToolkit"); } return (((JNodeToolkit) tk).graphics != null); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
return null; }
return null; }
public Map mapInputMethodHighlight(InputMethodHighlight highlight) { // TODO Auto-generated method stub return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
ImageObserver observer) { return false; }
ImageObserver observer) { return false; }
public boolean prepareImage(Image image, int width, int height, ImageObserver observer) { // TODO Auto-generated method stub return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
this.top = frame; }
this.top = frame; }
protected void setTop(Frame frame) { this.top = frame; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
final Toolkit tk = getDefaultToolkit(); if (!(tk instanceof JNodeToolkit)) { throw new AWTError("Toolkit is not a JNodeToolkit"); } ((JNodeToolkit) tk).incRefCount(); }
final Toolkit tk = getDefaultToolkit(); if (!(tk instanceof JNodeToolkit)) { throw new AWTError("Toolkit is not a JNodeToolkit"); } ((JNodeToolkit) tk).incRefCount(); }
public static void startGui() { final Toolkit tk = getDefaultToolkit(); if (!(tk instanceof JNodeToolkit)) { throw new AWTError("Toolkit is not a JNodeToolkit"); } ((JNodeToolkit) tk).incRefCount(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
final Toolkit tk = getDefaultToolkit(); if (!(tk instanceof JNodeToolkit)) { throw new AWTError("Toolkit is not a JNodeToolkit"); } ((JNodeToolkit) tk).decRefCount(true); }
final Toolkit tk = getDefaultToolkit(); if (!(tk instanceof JNodeToolkit)) { throw new AWTError("Toolkit is not a JNodeToolkit"); } ((JNodeToolkit) tk).decRefCount(true); }
public static void stopGui() { final Toolkit tk = getDefaultToolkit(); if (!(tk instanceof JNodeToolkit)) { throw new AWTError("Toolkit is not a JNodeToolkit"); } ((JNodeToolkit) tk).decRefCount(true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
public void sync() { // TODO Auto-generated method stub }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
}
}
public void sync() { // TODO Auto-generated method stub }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
final Toolkit tk = getDefaultToolkit(); if (!(tk instanceof JNodeToolkit)) { throw new AWTError("Toolkit is not a JNodeToolkit"); } ((JNodeToolkit) tk).doWaitUntilStopped(); }
final Toolkit tk = getDefaultToolkit(); if (!(tk instanceof JNodeToolkit)) { throw new AWTError("Toolkit is not a JNodeToolkit"); } ((JNodeToolkit) tk).doWaitUntilStopped(); }
public static void waitUntilStopped() { final Toolkit tk = getDefaultToolkit(); if (!(tk instanceof JNodeToolkit)) { throw new AWTError("Toolkit is not a JNodeToolkit"); } ((JNodeToolkit) tk).doWaitUntilStopped(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/JNodeToolkit.java/buggy/gui/src/awt/org/jnode/awt/JNodeToolkit.java
try {
public void close() throws IOException { try { closeConnection(); } finally { fireConnectionEvent(ConnectionEvent.CONNECTION_CLOSED); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/HTTPConnection.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/HTTPConnection.java
finally { fireConnectionEvent(ConnectionEvent.CONNECTION_CLOSED); } }
public void close() throws IOException { try { closeConnection(); } finally { fireConnectionEvent(ConnectionEvent.CONNECTION_CLOSED); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/HTTPConnection.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/HTTPConnection.java
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
protected String getURI() { StringBuffer buf = new StringBuffer(); buf.append(secure ? "https://" : "http://"); buf.append(hostname); if (secure) { if (port != HTTPConnection.HTTPS_PORT) { buf.append(':'); buf.append(port); } } else { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/HTTPConnection.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/HTTPConnection.java
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
public Request newRequest(String method, String path) { if (method == null || method.length() == 0) { throw new IllegalArgumentException("method must have non-zero length"); } if (path == null || path.length() == 0) { path = "/"; } Request ret = new Request(this, method, pa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/HTTPConnection.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/HTTPConnection.java