rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
static Object allocateObject (Class clazz) | static Object allocateObject (Class clazzClass, Class constr_clazz, Constructor constructor) | static Object allocateObject (Class clazz) throws InstantiationException { // TODO implement me return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec68c03d0cec27a37673b1d062d14a64bafa26a7/VMObjectInputStream.java/buggy/core/src/classpath/vm/java/io/VMObjectInputStream.java |
g.drawRect(t.x - 1, t.y + 2, t.width + 2, t.height - 4); | g.drawRect(t.x - 1, t.y - 1, t.width + 2, t.height + 2); | protected void paintFocus(Graphics g, Rectangle t, Dimension d) { g.setColor(focusColor); g.drawRect(t.x - 1, t.y + 2, t.width + 2, t.height - 4); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/MetalRadioButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalRadioButtonUI.java |
if (ancestor != root) | if (ancestor == null) ancestor = root; else if (ancestor != root) | public Component getComponentAfter (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalAr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java |
public Component getComponentAfter (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalAr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java | ||
if (components[i] == current) | if (components[i].equals(current)) | public Component getComponentAfter (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalAr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java |
for (int i = componentIndex + 1; i < numComponents; i++) { if (accept (components[i])) return components[i]; if (components[i] instanceof Container) { Component result = getFirstComponent ((Container) components[i]); if (result != null && implicitDownCycleTraversal) return result; } } | int i = componentIndex + 1; int end = numComponents - 1; Component next = getNextAvailableComponent(components, i, end); if (next != null) return next; i = 0; end = componentIndex; next = getNextAvailableComponent(components, i, end); if (next != null) return next; | public Component getComponentAfter (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalAr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java |
public Component getComponentAfter (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalAr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java | ||
if (ancestor != root) | if (ancestor == null) ancestor = root; else if (ancestor != root) | public Component getComponentBefore (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalA... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java |
for (int i = componentIndex - 1; i >= 0; i--) { if (accept (components[i])) return components[i]; if (components[i] instanceof Container) { Component result = getLastComponent ((Container) components[i]); if (result != null) return result; } } | int i = componentIndex - 1; int end = 0; Component prev = getPrevAvailableComponent(components, i, end); if (prev != null) return prev; i = numComponents -1; end = componentIndex; prev = getPrevAvailableComponent(components, i, end); if (prev != null) return prev; | public Component getComponentBefore (Container root, Component current) { if (root == null) throw new IllegalArgumentException ("focus cycle root is null"); if (current == null) throw new IllegalArgumentException ("current component is null"); if (!root.isFocusCycleRoot ()) throw new IllegalA... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java |
if (accept (root)) | if (root.visible && root.isDisplayable() && root.enabled && root.focusable) | public Component getFirstComponent(Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = 0; i < c... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java |
if (accept (component)) | if (component.visible && component.isDisplayable() && component.enabled && component.focusable) | public Component getFirstComponent(Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = 0; i < c... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java |
if (result != null) | if (result != null && (result.visible && result.isDisplayable() && result.enabled && result.focusable)) | public Component getFirstComponent(Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = 0; i < c... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java |
if (accept (root)) | if (root.visible && root.isDisplayable() && root.enabled && root.focusable) | public Component getLastComponent (Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = compon... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java |
if (accept (component)) | if (component.visible && component.isDisplayable() && component.enabled && component.focusable) | public Component getLastComponent (Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = compon... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java |
if (result != null) | if (result != null && result.visible && result.isDisplayable() && result.enabled && result.focusable) | public Component getLastComponent (Container root) { if (root == null) throw new IllegalArgumentException (); if (!root.isVisible () || !root.isDisplayable ()) return null; if (accept (root)) return root; Component[] componentArray = root.getComponents (); for (int i = compon... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ContainerOrderFocusTraversalPolicy.java/buggy/core/src/classpath/java/java/awt/ContainerOrderFocusTraversalPolicy.java |
return super.getMessage() + (index >= 0 ? " at index " + index : "") + ": " + input; | return (super.getMessage() + (index >= 0 ? " at index " + index : "") + ": " + input); | public String getMessage() { return super.getMessage() + (index >= 0 ? " at index " + index : "") + ": " + input; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/URISyntaxException.java/buggy/core/src/classpath/java/java/net/URISyntaxException.java |
public ServiceContextListHolder(ServiceContext[] initialValue) | public ServiceContextListHolder() | public ServiceContextListHolder(ServiceContext[] initialValue) { value = initialValue; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/ServiceContextListHolder.java/buggy/core/src/classpath/org/org/omg/IOP/ServiceContextListHolder.java |
value = initialValue; | public ServiceContextListHolder(ServiceContext[] initialValue) { value = initialValue; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/ServiceContextListHolder.java/buggy/core/src/classpath/org/org/omg/IOP/ServiceContextListHolder.java | |
if (viewIndex == -1) return null; | protected View createView(FlowView fv, int offset, int spanLeft, int rowIndex) { // Find the logical element for the given offset. View logicalView = getLogicalView(fv); int viewIndex = logicalView.getViewIndex(offset, Position.Bias.Forward); View child = logicalV... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/FlowView.java/clean/core/src/classpath/javax/javax/swing/text/FlowView.java | |
} | protected int layoutRow(FlowView fv, int rowIndex, int pos) { int spanLeft = fv.getFlowSpan(rowIndex); if (spanLeft <= 0) return -1; int offset = pos; View row = fv.getView(rowIndex); int flowAxis = fv.getFlowAxis(); while (spanLeft > 0) { View child = createV... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/FlowView.java/clean/core/src/classpath/javax/javax/swing/text/FlowView.java | |
return getElement().getElementIndex(pos); | int index = -1; int i = 0; for (Iterator it = children.iterator(); it.hasNext(); i++) { View child = (View) it.next(); if (child.getStartOffset() >= pos && child.getEndOffset() < pos) { index = i; break; } } return index; | public int getViewIndex(int pos, Position.Bias b) { return getElement().getElementIndex(pos); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/FlowView.java/clean/core/src/classpath/javax/javax/swing/text/FlowView.java |
Element el = getElement(); int index = el.getElementIndex(pos); | int index = -1; for (int i = 0; i < children.length; i++) { if (children[i].getStartOffset() >= pos && children[i].getEndOffset() < pos) { index = i; break; } } | protected int getViewIndexAtPosition(int pos) { // We have one child view allocated for each child element in // loadChildren(), so this should work. Element el = getElement(); int index = el.getElementIndex(pos); return index; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/CompositeView.java/buggy/core/src/classpath/javax/javax/swing/text/CompositeView.java |
g.fillRect(0, 0, c.getWidth(), c.getHeight()); | Rectangle clip = g.getClipBounds(); g.fillRect(clip.x, clip.y, clip.width, clip.height); | public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); g.fillRect(0, 0, c.getWidth(), c.getHeight()); } paint(g, c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/ComponentUI.java/clean/core/src/classpath/javax/javax/swing/plaf/ComponentUI.java |
int rount = units / 2; | public int getCrossFeedResolution(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less then 1"); int rount = units / 2; return (crossFeedResolution + units) / units; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/ResolutionSyntax.java/clean/core/src/classpath/javax/javax/print/attribute/ResolutionSyntax.java | |
int rount = units / 2; | public int getFeedResolution(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less then 1"); int rount = units / 2; return (crossFeedResolution + units) / units; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/ResolutionSyntax.java/clean/core/src/classpath/javax/javax/print/attribute/ResolutionSyntax.java | |
protected void fireValueChanged(int firstIndex, int lastIndex) | protected void fireValueChanged(boolean isAdjusting) | protected void fireValueChanged(int firstIndex, int lastIndex) { fireValueChanged(firstIndex, lastIndex, getValueIsAdjusting()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/DefaultListSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultListSelectionModel.java |
fireValueChanged(firstIndex, lastIndex, getValueIsAdjusting()); | fireValueChanged(getMinSelectionIndex(), getMaxSelectionIndex(), isAdjusting); | protected void fireValueChanged(int firstIndex, int lastIndex) { fireValueChanged(firstIndex, lastIndex, getValueIsAdjusting()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/DefaultListSelectionModel.java/clean/core/src/classpath/javax/javax/swing/DefaultListSelectionModel.java |
throws NotImplementedException | public Shape createStrokedShape(Shape s) { // FIXME: Implement this throw new Error("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/BasicStroke.java/clean/core/src/classpath/java/java/awt/BasicStroke.java | |
return null; | return createLineBorder(color, 1); | public static Border createLineBorder(Color color) { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BorderFactory.java/buggy/core/src/classpath/javax/javax/swing/BorderFactory.java |
log.entering("Main", "installNewProvider"); | log.entering(this.getClass().getName(), "installNewProvider"); | private void installNewProvider() { log.entering("Main", "installNewProvider"); String providerName = provider.getName(); log.info("About to install new provider: " + providerName); // we need to override security checks Boolean result = (Boolean) AccessController.doPrivileged(new PrivilegedAction() ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
String providerName = provider.getName(); log.info("About to install new provider: " + providerName); Boolean result = (Boolean) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { int actualPosition = Security.insertProviderAt(provider, 1); return new Boolean(actualPosition != - 1); } }); log... | providerInstalled = ProviderUtil.addProvider(provider) != -1; | private void installNewProvider() { log.entering("Main", "installNewProvider"); String providerName = provider.getName(); log.info("About to install new provider: " + providerName); // we need to override security checks Boolean result = (Boolean) AccessController.doPrivileged(new PrivilegedAction() ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.exiting("Main", "installNewProvider"); | log.exiting(this.getClass().getName(), "installNewProvider"); | private void installNewProvider() { log.entering("Main", "installNewProvider"); String providerName = provider.getName(); log.info("About to install new provider: " + providerName); // we need to override security checks Boolean result = (Boolean) AccessController.doPrivileged(new PrivilegedAction() ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.entering("Main", "main", args); | log.entering(Main.class.getName(), "main", args); | public static final void main(String[] args) { log.entering("Main", "main", args); Main tool = new Main(); try { tool.processArgs(args); tool.start(); } catch (SecurityException x) { log.throwing("Main", "main", x); System.err.println("jarsigner: " + x.getMessag... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.throwing("Main", "main", x); System.err.println("jarsigner: " + x.getMessage()); | log.throwing(Main.class.getName(), "main", x); System.err.println(Messages.getString("Main.7") + x.getMessage()); | public static final void main(String[] args) { log.entering("Main", "main", args); Main tool = new Main(); try { tool.processArgs(args); tool.start(); } catch (SecurityException x) { log.throwing("Main", "main", x); System.err.println("jarsigner: " + x.getMessag... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.throwing("Main", "main", x); System.err.println("jarsigner error: " + x); | log.throwing(Main.class.getName(), "main", x); System.err.println(Messages.getString("Main.9") + x); } finally { tool.teardown(); | public static final void main(String[] args) { log.entering("Main", "main", args); Main tool = new Main(); try { tool.processArgs(args); tool.start(); } catch (SecurityException x) { log.throwing("Main", "main", x); System.err.println("jarsigner: " + x.getMessag... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
tool.teardown(); log.exiting("Main", "main"); | log.exiting(Main.class.getName(), "main", Integer.valueOf(result)); System.exit(result); | public static final void main(String[] args) { log.entering("Main", "main", args); Main tool = new Main(); try { tool.processArgs(args); tool.start(); } catch (SecurityException x) { log.throwing("Main", "main", x); System.err.println("jarsigner: " + x.getMessag... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.entering("Main", "processArgs", args); | log.entering(this.getClass().getName(), "processArgs", args); | private void processArgs(String[] args) throws Exception { log.entering("Main", "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0; String opt; while (i < limit) { opt = args[i++]; log.finest("args[" + (i - 1) + "]=" + opt); if (opt == null || opt.length() ... | cmdLineParser = new ToolParser(); cmdLineParser.initializeParser(); cmdLineParser.parse(args, new ToolParserCallback()); | private void processArgs(String[] args) throws Exception { log.entering("Main", "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.info("Will verify with the following parameters:"); log.info(" jar-file = '" + jarFileName + "'"); log.info("Options:"); log.info(" provider = '" + providerClassName + "'"); log.info(" verbose ? " + verbose); log.info(" certs ? " + certs); log.info(" internalsf ? " + internalSF); log.info(" se... | log.finer("Will verify with the following parameters:"); log.finer(" jar-file = '" + jarFileName + "'"); log.finer("Options:"); log.finer(" provider = '" + providerClassName + "'"); log.finer(" verbose ? " + verbose); log.finer(" certs ? " + certs); log.finer(" internalsf ? " + internalSF); log.fi... | private void processArgs(String[] args) throws Exception { log.entering("Main", "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.info("Will sign with the following parameters:"); log.info(" jar-file = '" + jarFileName + "'"); log.info(" alias = '" + alias + "'"); log.info("Options:"); log.info(" keystore = '" + ksURL + "'"); log.info(" storetype = '" + ksType + "'"); log.info(" storepass = '" + ksPassword + "'"); log.inf... | log.finer("Will sign with the following parameters:"); log.finer(" jar-file = '" + jarFileName + "'"); log.finer(" alias = '" + alias + "'"); log.finer("Options:"); log.finer(" keystore = '" + ksURL + "'"); log.finer(" storetype = '" + ksType + "'"); log.finer(" storepass = '" + ksPassword + "'"); ... | private void processArgs(String[] args) throws Exception { log.entering("Main", "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.exiting("Main", "processArgs"); | log.exiting(this.getClass().getName(), "processArgs"); | private void processArgs(String[] args) throws Exception { log.entering("Main", "processArgs", args); HelpPrinter.checkHelpKey(args, HELP_PATH); if (args == null || args.length == 0) HelpPrinter.printHelpAndExit(HELP_PATH); int limit = args.length; log.finest("args.length=" + limit); int i = 0... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); | log.entering(this.getClass().getName(), "setupCommonParams"); | private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
throw new IOException("JAR file [" + jarFileName + "] is NOT a file object"); | throw new IOException(Messages.getFormattedString("Main.70", jarFileName)); | private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
throw new IOException("JAR file [" + jarFileName + "] is NOT readable"); | throw new IOException(Messages.getFormattedString("Main.72", jarFileName)); | private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.info("Provider " + providerName + " is already installed"); | log.finer("Provider " + providerName + " is already installed"); | private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.warning("Option <certs> is set but <verbose> is not. Ignored"); | log.fine("Option <certs> is set but <verbose> is not. Ignored"); | private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.exiting("Main", "setupCommonParams"); | log.exiting(this.getClass().getName(), "setupCommonParams"); | private void setupCommonParams() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { log.entering("Main", "setupCommonParams"); if (jarFileName == null) HelpPrinter.printHelpAndExit(HELP_PATH); File jar = new File(jarFileName); if (! jar.exists()) t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.entering("Main", "setupSigningParams"); | log.entering(this.getClass().getName(), "setupSigningParams"); | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
String userHome = SystemProperties.getProperty("user.home"); | String userHome = SystemProperties.getProperty("user.home"); | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
throw new SecurityException("Option '-keystore' is not defined or" + " is an empty string, and 'user.home'" + " is unknown"); ksURL = "file:" + userHome.trim() + "/.keystore"; | throw new SecurityException(Messages.getString("Main.85")); ksURL = "file:" + userHome.trim() + "/.keystore"; | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
if (ksURL.indexOf(":") == -1) ksURL = "file:" + ksURL; | if (ksURL.indexOf(":") == -1) ksURL = "file:" + ksURL; | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
CallbackHandler handler = new ConsoleCallbackHandler(); PasswordCallback pcb = new PasswordCallback("Enter keystore password: ", | PasswordCallback pcb = new PasswordCallback(Messages.getString("Main.92"), | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
handler.handle(new Callback[] { pcb }); | getCallbackHandler().handle(new Callback[] { pcb }); | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
if (alias == null) HelpPrinter.printHelpAndExit(HELP_PATH); | if (! store.containsAlias(alias)) throw new SecurityException(Messages.getFormattedString("Main.6", alias)); | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
if (! store.containsAlias(alias)) throw new SecurityException("Designated alias [" + alias + "] MUST be known to the key store in use"); | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java | |
throw new SecurityException("Designated alias [" + alias + "] MUST be an Alias of a Key Entry"); | throw new SecurityException(Messages.getFormattedString("Main.95", alias)); | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
CallbackHandler handler = new ConsoleCallbackHandler(); PasswordCallback pcb = new PasswordCallback("Enter key password for " + alias + ": ", false); handler.handle(new Callback[] { pcb }); | String prompt = Messages.getFormattedString("Main.97", alias); PasswordCallback pcb = new PasswordCallback(prompt, false); getCallbackHandler().handle(new Callback[] { pcb }); | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
throw new SecurityException("Key associated with " + alias + " MUST be a private key"); | throw new SecurityException(Messages.getFormattedString("Main.99", alias)); | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.exiting("Main", "setupSigningParams"); | log.exiting(this.getClass().getName(), "setupSigningParams"); | private void setupSigningParams() throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnsupportedCallbackException, UnrecoverableKeyException { log.entering("Main", "setupSigningParams"); if (ksURL == null || ksURL.trim().length() == 0) { String userHome... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.entering("Main", "start"); | log.entering(this.getClass().getName(), "start"); | private void start() throws Exception { log.entering("Main", "start"); if (verify) { JarVerifier jv = new JarVerifier(this); jv.start(); } else { JarSigner js = new JarSigner(this); js.start(); } log.exiting("Main", "start"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.exiting("Main", "start"); | log.exiting(this.getClass().getName(), "start"); | private void start() throws Exception { log.entering("Main", "start"); if (verify) { JarVerifier jv = new JarVerifier(this); jv.start(); } else { JarSigner js = new JarSigner(this); js.start(); } log.exiting("Main", "start"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.entering("Main", "teardown"); | log.entering(this.getClass().getName(), "teardown"); | private void teardown() { log.entering("Main", "teardown"); if (providerInstalled) { final String providerName = provider.getName(); log.info("About to remove provider: " + providerName); // remove it. again we need to override security checks AccessController.doPrivileged(new ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
{ final String providerName = provider.getName(); log.info("About to remove provider: " + providerName); AccessController.doPrivileged(new PrivilegedAction() { public Object run() { Security.removeProvider(providerName); return null; } }); } | ProviderUtil.removeProvider(provider.getName()); | private void teardown() { log.entering("Main", "teardown"); if (providerInstalled) { final String providerName = provider.getName(); log.info("About to remove provider: " + providerName); // remove it. again we need to override security checks AccessController.doPrivileged(new ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.exiting("Main", "teardown"); | log.exiting(this.getClass().getName(), "teardown"); | private void teardown() { log.entering("Main", "teardown"); if (providerInstalled) { final String providerName = provider.getName(); log.info("About to remove provider: " + providerName); // remove it. again we need to override security checks AccessController.doPrivileged(new ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/Main.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/Main.java |
log.entering("JarSigner", "start"); | log.entering(this.getClass().getName(), "start"); | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarSigner.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
System.out.println(" signing: " + jeName); | System.out.println(Messages.getString("JarSigner.1") + jeName); | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarSigner.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
System.out.println(" updating: " + JarFile.MANIFEST_NAME); | System.out.println(Messages.getString("JarSigner.2") + JarFile.MANIFEST_NAME); | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarSigner.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
File signedJarFile = File.createTempFile("gcp-", ".jar"); | File signedJarFile = File.createTempFile("gcp-", ".jar"); | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarSigner.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
log.finest("Processing " + jeName); | log.finest("Processing " + jeName); | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarSigner.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
log.finest("Processing " + sfFileName); | log.finest("Processing " + sfFileName); | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarSigner.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
log.info("Created .SF file"); | log.finer("Created .SF file"); | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarSigner.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
System.out.println(" adding: " + sfFileName); | System.out.println(Messages.getString("JarSigner.8") + sfFileName); | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarSigner.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
log.finest("Processing " + dsaFileName); | log.finest("Processing " + dsaFileName); | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarSigner.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
log.info("Created .DSA file"); | log.finer("Created .DSA file"); | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarSigner.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
System.out.println(" adding: " + dsaFileName); | System.out.println(Messages.getString("JarSigner.8") + dsaFileName); | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarSigner.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
log.info("Renamed signed JAR file"); | log.finer("Renamed signed JAR file"); | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarSigner.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
System.out.println(SystemProperties.getProperty("line.separator") + "jar signed."); | System.out.println(SystemProperties.getProperty("line.separator") + Messages.getString("JarSigner.14")); | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarSigner.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
log.exiting("JarSigner", "start"); | log.exiting(this.getClass().getName(), "start"); | void start() throws Exception { log.entering("JarSigner", "start"); JarFile jarFile = new JarFile(main.getJarFileName()); SFHelper sfHelper = new SFHelper(jarFile); sfHelper.startSigning(); // 1. compute the digests for (Enumeration e = jarFile.entries(); e.hasMoreElements(); ) { JarEnt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/JarSigner.java/buggy/core/src/classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java |
if (tileIcon == null) return; | private void paintEdge(Component c, Graphics g, int x, int y, int width, int height, int dx, int dy) { Color oldColor; int iconWidth, iconHeight; Graphics clipped; if ((width <= 0) || (height <= 0)) return; /* Paint a colored rectangle if desired. *... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/MatteBorder.java/buggy/core/src/classpath/javax/javax/swing/border/MatteBorder.java | |
public ProfileHeader(byte[] data) | public ProfileHeader() | public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/ProfileHeader.java/buggy/core/src/classpath/gnu/gnu/java/awt/color/ProfileHeader.java |
ByteBuffer buf = ByteBuffer.wrap(data); | creatorSig = 0; intent = 0; modelSig = manufacturerSig = (int) 0x6E6f6E65; magic = icMagicNumber; cmmId = 0; platform = 0; timestamp = new byte[8]; majorVersion = 2; minorVersion = 0x10; flags = 0; | public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/ProfileHeader.java/buggy/core/src/classpath/gnu/gnu/java/awt/color/ProfileHeader.java |
size = buf.getInt(ICC_Profile.icHdrSize); cmmId = buf.getInt(ICC_Profile.icHdrCmmId); majorVersion = (int) (data[ICC_Profile.icHdrVersion]); minorVersion = (int) (data[ICC_Profile.icHdrVersion + 1]); int classSig = buf.getInt(ICC_Profile.icHdrDeviceClass); profileClass = -1; for (int i = 0; i < classMap.length;... | illuminant = new byte[] { (byte) 0x00, (byte) 0x00, (byte) 0xf6, (byte) 0xd6, (byte) 0x00, (byte) 0x01, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0xd3, (byte) 0x2d }; | public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/ProfileHeader.java/buggy/core/src/classpath/gnu/gnu/java/awt/color/ProfileHeader.java |
System.arraycopy(data, ICC_Profile.icHdrAttributes, attributes, 0, 8); intent = buf.getInt(ICC_Profile.icHdrRenderingIntent); illuminant = new byte[12]; System.arraycopy(data, ICC_Profile.icHdrIlluminant, illuminant, 0, 12); creatorSig = buf.getInt(ICC_Profile.icHdrCreator); | profileClass = ICC_Profile.CLASS_DISPLAY; | public ProfileHeader(byte[] data) { ByteBuffer buf = ByteBuffer.wrap(data); // Get size (the sign bit shouldn't matter. // A valid profile can never be +2Gb) size = buf.getInt(ICC_Profile.icHdrSize); // CMM ID cmmId = buf.getInt(ICC_Profile.icHdrCmmId); // Version number majorVersion = (int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/ProfileHeader.java/buggy/core/src/classpath/gnu/gnu/java/awt/color/ProfileHeader.java |
ICC_ProfileRGB(byte[] data) | ICC_ProfileRGB(int cspace) | ICC_ProfileRGB(byte[] data) { super(data); matrix = createMatrix(); whitePoint = getXYZData(icSigMediaWhitePointTag); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/ICC_ProfileRGB.java/buggy/core/src/classpath/java/java/awt/color/ICC_ProfileRGB.java |
super(data); | super(cspace); | ICC_ProfileRGB(byte[] data) { super(data); matrix = createMatrix(); whitePoint = getXYZData(icSigMediaWhitePointTag); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/ICC_ProfileRGB.java/buggy/core/src/classpath/java/java/awt/color/ICC_ProfileRGB.java |
ICC_ProfileGray(byte[] data) | ICC_ProfileGray(int cspace) | ICC_ProfileGray(byte[] data) { super(data); whitePoint = getXYZData(icSigMediaWhitePointTag); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/ICC_ProfileGray.java/buggy/core/src/classpath/java/java/awt/color/ICC_ProfileGray.java |
super(data); | super(cspace); | ICC_ProfileGray(byte[] data) { super(data); whitePoint = getXYZData(icSigMediaWhitePointTag); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/ICC_ProfileGray.java/buggy/core/src/classpath/java/java/awt/color/ICC_ProfileGray.java |
dm.rename(device, getDevicePrefix(), true); | if (renameToDevicePrefixOnly()) { dm.rename(device, getDevicePrefix(), true); } else { dm.rename(device, getDevicePrefix() + "-" + device.getId(), false); } | protected void startDevice() throws DriverException { final Device device = getDevice(); try { final DeviceManager dm = (DeviceManager)InitialNaming.lookup(DeviceManager.NAME); dm.rename(device, getDevicePrefix(), true); } catch (DeviceAlreadyRegisteredException ex) { log.error("Cannot rename device", ex); }... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/07114658a0ab2659d7b38ac5ad6a0b214fba24e9/AbstractNetDriver.java/clean/net/src/driver/org/jnode/driver/net/spi/AbstractNetDriver.java |
this.fs = fs; this.desc = desc; this.data = new byte[INODE_LENGTH]; locked = 0; log.setLevel(Level.INFO); } | this.fs = fs; this.desc = desc; this.data = new byte[INODE_LENGTH]; locked = 0; log.setLevel(Level.INFO); } | public INode(Ext2FileSystem fs, INodeDescriptor desc) { this.fs = fs; this.desc = desc; this.data = new byte[INODE_LENGTH]; locked = 0; log.setLevel(Level.INFO); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/INode.java/clean/fs/src/fs/org/jnode/fs/ext2/INode.java |
public synchronized void allocateDataBlock(long i) throws FileSystemException, IOException { if(i < getAllocatedBlockCount()) throw new IOException(i+" blocks are already allocated for this inode"); if(i > getAllocatedBlockCount()) throw new IOException("Allocate block "+getAllocatedBlockCount()+" first!"); long newBl... | public synchronized void allocateDataBlock(long i) throws FileSystemException, IOException { if (i < getAllocatedBlockCount()) throw new IOException(i + " blocks are already allocated for this inode"); if (i > getAllocatedBlockCount()) throw new IOException("Allocate block " + getAllocatedBlockCount() + " first!"); | public synchronized void allocateDataBlock(long i) throws FileSystemException, IOException { if(i < getAllocatedBlockCount()) throw new IOException(i+" blocks are already allocated for this inode"); if(i > getAllocatedBlockCount()) throw new IOException("Allocate block "+getAllocatedBlockCount()+" first!"); lo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/INode.java/clean/fs/src/fs/org/jnode/fs/ext2/INode.java |
registerBlockIndex(i, newBlock); } | long newBlock = findFreeBlock(i); log.debug("Allocated new block " + newBlock); desc.setLastAllocatedBlockIndex(i); registerBlockIndex(i, newBlock); } | public synchronized void allocateDataBlock(long i) throws FileSystemException, IOException { if(i < getAllocatedBlockCount()) throw new IOException(i+" blocks are already allocated for this inode"); if(i > getAllocatedBlockCount()) throw new IOException("Allocate block "+getAllocatedBlockCount()+" first!"); lo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/INode.java/clean/fs/src/fs/org/jnode/fs/ext2/INode.java |
public void create(int fileFormat, int accessRights, int uid, int gid){ long time = System.currentTimeMillis()/1000; log.debug("TIME: "+time); setUid(uid); setGid(gid); setMode(fileFormat | accessRights); setSize(0); setAtime(time); setCtime(time); setMtime(time); setDtime(0); setLinksCount(0); setDir... | public void create(int fileFormat, int accessRights, int uid, int gid) { long time = System.currentTimeMillis() / 1000; log.debug("TIME: " + time); setUid(uid); setGid(gid); setMode(fileFormat | accessRights); setSize(0); setAtime(time); setCtime(time); setMtime(time); setDtime(0); setLinksCount(0); s... | public void create(int fileFormat, int accessRights, int uid, int gid){ long time = System.currentTimeMillis()/1000; log.debug("TIME: "+time); setUid(uid); setGid(gid); setMode(fileFormat | accessRights); setSize(0); setAtime(time); setCtime(time); setMtime(time); setDtime(0); setLinksCount... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/INode.java/clean/fs/src/fs/org/jnode/fs/ext2/INode.java |
--locked; if(locked==0) this.notifyAll(); if(locked<0) { locked = 0; throw new RuntimeException("INode has been unlocked more than locked"); } } | --locked; if (locked == 0) this.notifyAll(); if (locked < 0) { locked = 0; throw new RuntimeException( "INode has been unlocked more than locked"); } } | public synchronized void decLocked() { --locked; if(locked==0) this.notifyAll(); if(locked<0) { //What!?? locked = 0; throw new RuntimeException("INode has been unlocked more than locked"); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/INode.java/clean/fs/src/fs/org/jnode/fs/ext2/INode.java |
protected void finalize() throws Exception{ flush(); } | protected void finalize() throws Exception { flush(); } | protected void finalize() throws Exception{ flush(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/INode.java/clean/fs/src/fs/org/jnode/fs/ext2/INode.java |
private long findFreeBlock(long index) throws IOException, FileSystemException{ long lastBlock = -1; BlockReservation reservation; if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } if(index>0) lastBlock = getDataBlockNr(index-1); if( lastBlock!=-1 ) { for(int i=1; i<16; i++) { reservation = ge... | private long findFreeBlock(long index) throws IOException, FileSystemException { long lastBlock = -1; BlockReservation reservation; | private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/INode.java/clean/fs/src/fs/org/jnode/fs/ext2/INode.java |
for(int i=-15; i<0; i++) { reservation = getExt2FileSystem().testAndSetBlock(lastBlock+i); if( reservation.isSuccessful() ) { desc.setPreallocBlock( reservation.getBlock()+1 ); desc.setPreallocCount( reservation.getPreallocCount() ); long prealloc512 = (1+reservation.getPreallocCount()) * (fs.getBlockSize()/512); setB... | if (desc.getPreallocCount() > 0) { return desc.usePreallocBlock(); } | private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/INode.java/clean/fs/src/fs/org/jnode/fs/ext2/INode.java |
long prealloc512 = (1+reservation.getPreallocCount()) * (fs.getBlockSize()/512); setBlocks( getBlocks()+prealloc512 ); return reservation.getBlock(); } | if (index > 0) lastBlock = getDataBlockNr(index - 1); if (lastBlock != -1) { for (int i = 1; i < 16; i++) { reservation = getExt2FileSystem() .testAndSetBlock(lastBlock + i); if (reservation.isSuccessful()) { desc.setPreallocBlock(reservation.getBlock() + 1); desc.setPreallocCount(reservation.getPreallocCount()); | private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/INode.java/clean/fs/src/fs/org/jnode/fs/ext2/INode.java |
long nonfullBlockGroup = -1; for(int i=0; i<getExt2FileSystem().getGroupCount(); i++) { if(i==desc.getGroup()) continue; long threshold = (long)Math.ceil( getExt2FileSystem().getSuperblock().getBlocksPerGroup() * Ext2Constants.EXT2_BLOCK_THRESHOLD_RATIO ); reservation = getExt2FileSystem().findFreeBlocks( i, thresh... | long prealloc512 = (1 + reservation.getPreallocCount()) * (fs.getBlockSize() / 512); setBlocks(getBlocks() + prealloc512); | private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/INode.java/clean/fs/src/fs/org/jnode/fs/ext2/INode.java |
long prealloc512 = (1+reservation.getPreallocCount()) * (fs.getBlockSize()/512); setBlocks( getBlocks()+prealloc512 ); return reservation.getBlock(); } if(reservation.getFreeBlocksCount()>0) nonfullBlockGroup = i; } if(nonfullBlockGroup!=-1) { reservation = getExt2FileSystem().findFreeBlocks( desc.getGroup(), 1 );... | return lastBlock + i; } } for (int i = -15; i < 0; i++) { reservation = getExt2FileSystem() .testAndSetBlock(lastBlock + i); if (reservation.isSuccessful()) { desc.setPreallocBlock(reservation.getBlock() + 1); desc.setPreallocCount(reservation.getPreallocCount()); long prealloc512 = (1 + reservation.getPreallocCount(... | private long findFreeBlock(long index) throws IOException, FileSystemException{ //long newBlock; long lastBlock = -1; BlockReservation reservation; //first, see if preallocated blocks exist if( desc.getPreallocCount() > 0 ) { return desc.usePreallocBlock(); } //no preallocated blocks: //check around the ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/INode.java/clean/fs/src/fs/org/jnode/fs/ext2/INode.java |
public void flush() throws IOException, FileSystemException{ log.debug("Flush called for inode "+getINodeNr()); freePreallocatedBlocks(); update(); } | public void flush() throws IOException, FileSystemException { log.debug("Flush called for inode " + getINodeNr()); freePreallocatedBlocks(); update(); } | public void flush() throws IOException, FileSystemException{ log.debug("Flush called for inode "+getINodeNr()); freePreallocatedBlocks(); update(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/INode.java/clean/fs/src/fs/org/jnode/fs/ext2/INode.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.