issue_id int64 2.04k 425k | title stringlengths 9 251 | body stringlengths 4 32.8k ⌀ | status stringclasses 6
values | after_fix_sha stringlengths 7 7 | project_name stringclasses 6
values | repo_url stringclasses 6
values | repo_name stringclasses 6
values | language stringclasses 1
value | issue_url null | before_fix_sha null | pull_url null | commit_datetime timestamp[us, tz=UTC] | report_datetime timestamp[us, tz=UTC] | updated_file stringlengths 23 187 | chunk_content stringlengths 1 22k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25,183 | Bug 25183 AST: ITypeBinding of interface returns constructor | 20021018 + jcore for 20021022 LocalCorrectionsQuickFixTest.testUnimplementedMethods Set breakpoint in UnimplementedMethodsCompletionProposal.findUnimplementedInterfaceMethods to see that the ITypeBinding of a interface returns a constructor | verified fixed | 9c77ba1 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T13:33:21Z | 2002-10-22T12:33:20Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append(" }\n");
buf.append(" public void foo() {\n");
buf.append(" try {\n");
buf.append(" goo();\n");
buf.append(" } catch (IOException e) {\n");
buf.append(" } catch (ParseException e) {\n");
buf.append(" }\n");
buf.append(" }\n");
buf.... |
25,183 | Bug 25183 AST: ITypeBinding of interface returns constructor | 20021018 + jcore for 20021022 LocalCorrectionsQuickFixTest.testUnimplementedMethods Set breakpoint in UnimplementedMethodsCompletionProposal.findUnimplementedInterfaceMethods to see that the ITypeBinding of a interface returns a constructor | verified fixed | 9c77ba1 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T13:33:21Z | 2002-10-22T12:33:20Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, true);
IProblem[] problems= astRoot.getProblems();
assertNumberOf("problems", problems.length, 1);
CorrectionContext context= getCorrectionContex... |
25,183 | Bug 25183 AST: ITypeBinding of interface returns constructor | 20021018 + jcore for 20021022 LocalCorrectionsQuickFixTest.testUnimplementedMethods Set breakpoint in UnimplementedMethodsCompletionProposal.findUnimplementedInterfaceMethods to see that the ITypeBinding of a interface returns a constructor | verified fixed | 9c77ba1 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T13:33:21Z | 2002-10-22T12:33:20Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append("}\n");
assertEqualString(preview, buf.toString());
}
public void testUnneededCatchBlockSingle() throws Exception {
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
StringBuffer buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("import java.io... |
25,183 | Bug 25183 AST: ITypeBinding of interface returns constructor | 20021018 + jcore for 20021022 LocalCorrectionsQuickFixTest.testUnimplementedMethods Set breakpoint in UnimplementedMethodsCompletionProposal.findUnimplementedInterfaceMethods to see that the ITypeBinding of a interface returns a constructor | verified fixed | 9c77ba1 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T13:33:21Z | 2002-10-22T12:33:20Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | assertCorrectLabels(proposals);
CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0);
String preview= proposal.getCompilationUnitChange().getPreviewContent();
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("import java.io.IOException;\n");
buf.append("public class... |
25,183 | Bug 25183 AST: ITypeBinding of interface returns constructor | 20021018 + jcore for 20021022 LocalCorrectionsQuickFixTest.testUnimplementedMethods Set breakpoint in UnimplementedMethodsCompletionProposal.findUnimplementedInterfaceMethods to see that the ITypeBinding of a interface returns a constructor | verified fixed | 9c77ba1 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T13:33:21Z | 2002-10-22T12:33:20Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append(" } catch (IOException e) {\n");
buf.append(" } finally {\n");
buf.append(" }\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, true);... |
25,183 | Bug 25183 AST: ITypeBinding of interface returns constructor | 20021018 + jcore for 20021022 LocalCorrectionsQuickFixTest.testUnimplementedMethods Set breakpoint in UnimplementedMethodsCompletionProposal.findUnimplementedInterfaceMethods to see that the ITypeBinding of a interface returns a constructor | verified fixed | 9c77ba1 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T13:33:21Z | 2002-10-22T12:33:20Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append(" } finally {\n");
buf.append(" }\n");
buf.append(" }\n");
buf.append("}\n");
assertEqualString(preview, buf.toString());
}
public void testUnimplementedMethods() throws Exception {
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
String... |
25,183 | Bug 25183 AST: ITypeBinding of interface returns constructor | 20021018 + jcore for 20021022 LocalCorrectionsQuickFixTest.testUnimplementedMethods Set breakpoint in UnimplementedMethodsCompletionProposal.findUnimplementedInterfaceMethods to see that the ITypeBinding of a interface returns a constructor | verified fixed | 9c77ba1 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T13:33:21Z | 2002-10-22T12:33:20Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | assertCorrectContext(context);
ArrayList proposals= new ArrayList();
JavaCorrectionProcessor.collectCorrections(context, proposals);
assertNumberOf("proposals", proposals.size(), 1);
assertCorrectLabels(proposals);
CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0);
String previ... |
25,183 | Bug 25183 AST: ITypeBinding of interface returns constructor | 20021018 + jcore for 20021022 LocalCorrectionsQuickFixTest.testUnimplementedMethods Set breakpoint in UnimplementedMethodsCompletionProposal.findUnimplementedInterfaceMethods to see that the ITypeBinding of a interface returns a constructor | verified fixed | 9c77ba1 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T13:33:21Z | 2002-10-22T12:33:20Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/QuickFixTest.java | package org.eclipse.jdt.ui.tests.quickfix;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.StringReader;
import java.util.List;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.eclipse.jface.text.contentassist.ICompletionProposal;
impor... |
25,183 | Bug 25183 AST: ITypeBinding of interface returns constructor | 20021018 + jcore for 20021022 LocalCorrectionsQuickFixTest.testUnimplementedMethods Set breakpoint in UnimplementedMethodsCompletionProposal.findUnimplementedInterfaceMethods to see that the ITypeBinding of a interface returns a constructor | verified fixed | 9c77ba1 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T13:33:21Z | 2002-10-22T12:33:20Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/QuickFixTest.java | suite.addTest(new TestSuite(ReturnTypeQuickFixTest.class));
suite.addTest(new TestSuite(LocalCorrectionsQuickFixTest.class));
suite.addTest(new TestSuite(ReorgQuickFixTest.class));
suite.addTest(new TestSuite(ModifierCorrectionsQuickFixTest.class));
suite.addTest(new TestSuite(MarkerResolutionTest.class));
re... |
25,183 | Bug 25183 AST: ITypeBinding of interface returns constructor | 20021018 + jcore for 20021022 LocalCorrectionsQuickFixTest.testUnimplementedMethods Set breakpoint in UnimplementedMethodsCompletionProposal.findUnimplementedInterfaceMethods to see that the ITypeBinding of a interface returns a constructor | verified fixed | 9c77ba1 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T13:33:21Z | 2002-10-22T12:33:20Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/QuickFixTest.java | public static void assertNumberOf(String name, int nProblems, int nProblemsExpected) {
assertTrue("Wrong number of " + name + ", is: " + nProblems + ", expected: " + nProblemsExpected, nProblems == nProblemsExpected);
}
public static void assertEqualStringsIgnoreOrder(String[] str1, String[] str2) {
boolean h... |
25,183 | Bug 25183 AST: ITypeBinding of interface returns constructor | 20021018 + jcore for 20021022 LocalCorrectionsQuickFixTest.testUnimplementedMethods Set breakpoint in UnimplementedMethodsCompletionProposal.findUnimplementedInterfaceMethods to see that the ITypeBinding of a interface returns a constructor | verified fixed | 9c77ba1 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T13:33:21Z | 2002-10-22T12:33:20Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/QuickFixTest.java | buf.append("Expected contents: \n");
for (int i= 0; i < str2.length; i++) {
String s2= str2[i];
if (s2 != null) {
buf.append(s2);
buf.append("\n");
}
}
}
}
private static int getDiffPos(String str1, String str2) {
int len1= Math.min(str1.length(), str2.length());
int diffPos... |
25,183 | Bug 25183 AST: ITypeBinding of interface returns constructor | 20021018 + jcore for 20021022 LocalCorrectionsQuickFixTest.testUnimplementedMethods Set breakpoint in UnimplementedMethodsCompletionProposal.findUnimplementedInterfaceMethods to see that the ITypeBinding of a interface returns a constructor | verified fixed | 9c77ba1 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T13:33:21Z | 2002-10-22T12:33:20Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/QuickFixTest.java | int diffPos= getDiffPos(str1, str2);
if (diffPos != -1) {
int diffAhead= Math.max(0, diffPos - printRange);
int diffAfter= Math.min(str1.length(), diffPos + printRange);
String diffStr= str1.substring(diffAhead, diffPos) + '^' + str1.substring(diffPos, diffAfter);
assertTrue("Content not as expected: ... |
25,183 | Bug 25183 AST: ITypeBinding of interface returns constructor | 20021018 + jcore for 20021022 LocalCorrectionsQuickFixTest.testUnimplementedMethods Set breakpoint in UnimplementedMethodsCompletionProposal.findUnimplementedInterfaceMethods to see that the ITypeBinding of a interface returns a constructor | verified fixed | 9c77ba1 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T13:33:21Z | 2002-10-22T12:33:20Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/QuickFixTest.java | public static TypeDeclaration findTypeDeclaration(CompilationUnit astRoot, String simpleTypeName) {
List types= astRoot.types();
for (int i= 0; i < types.size(); i++) {
TypeDeclaration elem= (TypeDeclaration) types.get(i);
if (simpleTypeName.equals(elem.getName().getIdentifier())) {
return elem;
}
}
... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | /*******************************************************************************
* Copyright (c) 2000, 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanie... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IPath;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.jface.operation.IRunnableContext;
import org.eclipse.jfa... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | import org.eclipse.jdt.internal.ui.dialogs.MainTypeSelectionDialog;
import org.eclipse.jdt.internal.ui.dialogs.MultiMainTypeSelectionDialog;
import org.eclipse.jdt.internal.ui.dialogs.MultiTypeSelectionDialog;
import org.eclipse.jdt.internal.ui.dialogs.TypeSelectionDialog;
import org.eclipse.jdt.internal.ui.javaeditor.... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | public static final String ID_PLUGIN= "org.eclipse.jdt.ui";
/**
* The id of the Java perspective
* (value <code>"org.eclipse.jdt.ui.JavaPerspective"</code>).
*/
public static final String ID_PERSPECTIVE= "org.eclipse.jdt.ui.JavaPerspective";
/**
* The id of the Java hierarchy perspective
* (value ... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | * @since 2.0
*/
public static final String ID_CODING_ACTION_SET= "org.eclipse.jdt.ui.CodingActionSet";
/**
* The id of the Java action set for open actions
* (value <code>"org.eclipse.jdt.ui.A_OpenActionSet"</code>).
*
* @since 2.0
*/
public static final String ID_OPEN_ACTION_SET= "org.eclipse.jdt.ui.A... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | /**
* The editor part id of the code snippet editor
* (value <code>"org.eclipse.jdt.ui.SnippetEditor"</code>).
*/
public static final String ID_SNIPPET_EDITOR= "org.eclipse.jdt.ui.SnippetEditor";
/**
* The view part id of the Packages view
* (value <code>"org.eclipse.jdt.ui.PackageExplorer"</code>).
* ... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | *
* @see ITypeHierarchyViewPart
* @see org.eclipse.ui.IWorkbenchPage#findView(java.lang.String)
* @see org.eclipse.ui.IWorkbenchPage#showView(java.lang.String)
*/
public static final String ID_TYPE_HIERARCHY= "org.eclipse.jdt.ui.TypeHierarchy";
/**
* The id of the Java Browsing Perspective
* (value <c... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | *
* @since 2.0
*/
public static String ID_TYPES_VIEW= "org.eclipse.jdt.ui.TypesView";
/**
* The view part id of the Java Browsing Members view
* (value <code>"org.eclipse.jdt.ui.MembersView"</code>).
*
* @since 2.0
*/
public static String ID_MEMBERS_VIEW= "org.eclipse.jdt.ui.MembersView";
/**
* ... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | return fgSharedImages;
}
/**
* Creates a selection dialog that lists all packages of the given Java project.
* The caller is responsible for opening the dialog with <code>Window.open</code>,
* and subsequently extracting the selected package (of type
* <code>IPackageFragment</code>) via <code>SelectionDial... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | if ((style & IJavaElementSearchConstants.CONSIDER_REQUIRED_PROJECTS) != 0) {
roots= project.getAllPackageFragmentRoots();
} else {
roots= project.getPackageFragmentRoots();
}
List consideredRoots= null;
if ((style & IJavaElementSearchConstants.CONSIDER_BINARIES) != 0) {
consideredRoots= Arrays.... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | dialog.setElements(packages.toArray());
dialog.setFilter(filter);
return dialog;
}
/**
* Creates a selection dialog that lists all packages of the given Java project.
* The caller is responsible for opening the dialog with <code>Window.open</code>,
* and subsequently extracting the selected package (of typ... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | * <code>IPackageFragment</code>) via <code>SelectionDialog.getResult</code>.
*
* @param parent the parent shell of the dialog to be created
* @param root the package fragment root
* @param filter the initial pattern to filter the set of packages. For example "com" shows
* all packages starting with "com". T... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | * @exception JavaModelException if the selection dialog could not be opened
*/
public static SelectionDialog createPackageDialog(Shell parent, IPackageFragmentRoot root) throws JavaModelException {
return createPackageDialog(parent, root, "");
}
/**
* Creates a selection dialog that lists all types in the giv... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | if (style == IJavaElementSearchConstants.CONSIDER_TYPES) {
elementKinds= IJavaSearchConstants.TYPE;
} else if (style == IJavaElementSearchConstants.CONSIDER_INTERFACES) {
elementKinds= IJavaSearchConstants.INTERFACE;
} else if (style == IJavaElementSearchConstants.CONSIDER_CLASSES) {
elementKinds= IJavaSea... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | * @param scope the scope that limits which types are included
* @param style flags defining the style of the dialog; the only valid values are
* <code>IJavaElementSearchConstants.CONSIDER_CLASSES</code>,
* <code>CONSIDER_INTERFACES</code>, or their bitwise OR
* (equivalent to <code>CONSIDER_TYPES</code>)... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | * any character and '*' representing any string are supported. Clients can pass an empty
* string if no filtering is required.
* @return a new selection dialog
*
* @since 2.0
*/
public static SelectionDialog createMainTypeDialog(Shell parent, IRunnableContext context, IJavaSearchScope scope, int style, boo... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | * <code>CONSIDER_EXTERNAL_JARS</code>, or their bitwise OR, or <code>0</code>
* @param multipleSelection <code>true</code> if multiple selection is allowed
* @return a new selection dialog
*/
public static SelectionDialog createMainTypeDialog(Shell parent, IRunnableContext context, IJavaSearchScope scope, int ... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | /**
* Opens a Java editor on the given Java element. The element can be a compilation unit
* or class file. If there already is an open Java editor for the given element, it is returned.
*
* @param element the input element; either a compilation unit
* (<code>ICompilationUnit</code>) or a class file (</co... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | /**
* Reveals the given java element in the given editor. If the element is not an instance
* of <code>ISourceReference</code> this method result in a NOP. If it is a source
* reference no checking is done if the editor displays a compilation unit or class file that
* contains the source reference element. T... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | *
* @see org.eclipse.jdt.core.JavaCore#getSharedWorkingCopies(org.eclipse.jdt.core.IBufferFactory)
* @since 2.0
*/
public static IWorkingCopy[] getSharedWorkingCopies() {
return JavaCore.getSharedWorkingCopies(getBufferFactory());
}
/**
* Returns the BufferFactory for the Java UI plug-in.
*
* @retur... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | public static IDocumentProvider getDocumentProvider() {
return JavaPlugin.getDefault().getCompilationUnitDocumentProvider();
}
/**
* Sets the Javadoc location for an archive with the given path.
*
* @param archivePath the path of the library; this can be an workspace path
* or an external path in case of... |
19,886 | Bug 19886 setProjectJavadocLocation() only in internal package [api] [javadoc] | If You want to set the project javadoc location by API so You have to use an internal class, there is no public interface. see class org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations (Otherwise the method setLibraryJavadocLocation() is public at org.eclipse.jdt.ui.JavaUI - thats ok.) | verified fixed | 1a70f57 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:21:40Z | 2002-06-11T10:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java | * Returns the Javadoc base URL for an element. The base location contains the
* index file. This location must not exist. Returns <code>null</code> if no javadoc location
* has been attached to the element's library or project.
* Example of a returned URL is <i>http://www.junit.org/junit/javadoc</i>.
*
* @pa... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | package org.eclipse.jdt.internal.ui.text.javadoc;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import java.util.ArrayList;
import java.util.List;
import org.eclipse.swt.graphics.Image;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.ecli... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | protected final static String[] fgTagProposals= {
"@author",
"@deprecated",
"@exception",
"@link",
"@param",
"@return",
"@see", "@serial", "@serialData", "@serialField", "@since",
"@throws",
"@version"
};
protected final static String[] fgHTMLProposals= {
"<code>", "</code>",
"<br>",... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | private int fCurrentLength;
private JavaElementLabelProvider fLabelProvider;
private List fResult;
private boolean fRestrictToMatchingCase;
public JavaDocCompletionEvaluator(ICompilationUnit cu, IDocument doc, int pos, int length) {
fCompilationUnit= cu;
fDocument= doc;
fCurrentPos= pos;
fCurrentLengt... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | int currPos= pos - 1;
if (currPos > lineBeginPos) {
try {
while (currPos > lineBeginPos && isWordPart(doc.getChar(currPos))) {
currPos--;
}
return currPos;
} catch (BadLocationException e) {
}
}
return pos;
}
private static int findLastWhitespace(IDocument doc, int lineBeginPos, int ... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | if (curr < end) {
return curr + 1;
}
return pos;
}
private static int findReplaceEndPos(IDocument doc, String newText, String oldText, int pos) {
if (oldText.length() == 0 || oldText.equals(newText)) {
return pos;
}
try {
IRegion lineInfo= doc.getLineInformationOfOffset(pos);
int end= lineI... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | }
return pos1;
}
} catch (BadLocationException e) {
e.printStackTrace();
}
return pos;
}
public JavaCompletionProposal[] computeProposals() throws JavaModelException {
fLabelProvider= new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_POST_QUALIFIED | JavaElementLabelProvider.SHOW_PARAMET... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | char firstChar= fDocument.getChar(word1Begin);
if (firstChar == '@') {
String prefix= fDocument.get(word1Begin, fCurrentPos - word1Begin);
addProposals(prefix, fgTagProposals, JavaPluginImages.IMG_OBJS_JAVADOCTAG);
return;
} else if (firstChar == '<') {
String prefix= fDocument.get(word1Begin, fCu... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | }
private boolean prefixMatches(String prefix, String proposal) {
if (fRestrictToMatchingCase) {
return proposal.startsWith(prefix);
} else if (proposal.length() >= prefix.length()) {
return prefix.equalsIgnoreCase(proposal.substring(0, prefix.length()));
}
return false;
}
private void addAll... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | private void addProposals(String prefix, String[] choices, String imageName) {
for (int i= 0; i < choices.length; i++) {
String curr= choices[i];
if (prefixMatches(prefix, curr)) {
fResult.add(createCompletion(curr, prefix, curr, JavaPluginImages.get(imageName), null, 0));
}
}
}
private void addPr... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | if (i != last) {
buf.append(", ");
}
}
buf.append(')');
return buf.toString();
} else {
return elem.getElementName();
}
}
/**
* Returns true if case is handeled
*/
private boolean addArgumentProposals(String tag, String argument) throws JavaModelException {
IJavaElement elem= fCom... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | for (int i= 0; i < exceptions.length; i++) {
String curr= Signature.toString(exceptions[i]);
if (prefixMatches(argument, curr)) {
fResult.add(createCompletion(curr, argument, curr, JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CLASS), null, 100));
}
}
evalTypeNameCompletions((IMethod)elem,... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | parent= (IType) elem.getAncestor(IJavaElement.TYPE);
}
if (parent != null) {
int nidx= arg.indexOf('(', pidx);
if (nidx == -1) {
nidx= arg.length();
}
String prefix= arg.substring(pidx + 1, nidx);
addProposals(prefix, parent.getMethods());
addProposals(prefix, parent.getFi... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | };
try {
preparedCU.codeComplete(fCurrentPos, requestor);
if (currElem.getDeclaringType() == null && fCurrentPos > wordStart) {
IType type= (IType) currElem;
char[] name= type.getElementName().toCharArray();
fResult.add(createSeeTypeCompletion(type.isClass(), wordStart, fCurrentPos, name, name... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | private ICompilationUnit createPreparedCU(IMember elem, int wordStart, int wordEnd) throws JavaModelException {
int startpos= elem.getSourceRange().getOffset();
char[] content= (char[]) fCompilationUnit.getBuffer().getCharacters().clone();
if ((elem.getDeclaringType() == null) && (wordStart + 6 < content.length))... |
21,857 | Bug 21857 Javadoc code completion does not work for public method of public inner class | Consider the following example, where the cursor is placed at the end of the javadoc comment line. Pressing Ctrl-Space now should complete with "someMethod()", shouldn't it? However, in Build 200206271827, it doesn't. public class TestCompletion { /** * {@link InnerTest#so */ public TestCompletion() { super(); } public... | verified fixed | 6e9aa8a | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T14:45:00Z | 2002-07-24T14:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocCompletionEvaluator.java | JavaCompletionProposal proposal= new JavaCompletionProposal(newText, offset, length, image, labelText, severity);
proposal.setProposalInfo(proposalInfo);
proposal.setTriggerCharacters( new char[] { '#' });
return proposal;
}
private JavaCompletionProposal createSeeTypeCompletion(boolean isClass, int start, in... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | package org.eclipse.jdt.ui.tests.quickfix;
import java.util.ArrayList;
import java.util.Hashtable;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaProject;
import org.eclip... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | private static final Class THIS= LocalCorrectionsQuickFixTest.class;
private IJavaProject fJProject1;
private IPackageFragmentRoot fSourceFolder;
public LocalCorrectionsQuickFixTest(String name) {
super(name);
}
public static Test suite() {
if (true) {
return new TestSuite(THIS);
} else {
TestSuite s... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | JavaCore.setOptions(options);
IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore();
store.setValue(PreferenceConstants.CODEGEN__FILE_COMMENTS, false);
store.setValue(PreferenceConstants.CODEGEN__JAVADOC_STUBS, false);
fJProject1= JavaProjectHelper.createJavaProject("TestProject1", "bin");
... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | CorrectionContext context= getCorrectionContext(cu, problems[0]);
assertCorrectContext(context);
ArrayList proposals= new ArrayList();
JavaCorrectionProcessor.collectCorrections(context, proposals);
assertNumberOf("proposals", proposals.size(), 1);
assertCorrectLabels(proposals);
CUCorrectionProposal... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, true);
IProblem[] problems= astRoot.getProblems();
assertNumberOf("problems", problems.length, 1);
CorrectionContext context= getCorrectionContext(cu, problems[0])... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append("public class E {\n");
buf.append(" public static void goo() {\n");
buf.append(" }\n");
buf.append(" public void foo() {\n");
buf.append(" this.goo();\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), fa... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append(" }\n");
buf.append("}\n");
assertEqualString(preview, buf.toString());
}
public void testCastMissingInVarDecl() throws Exception {
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
StringBuffer buf= new StringBuffer();
buf.append("package test1;\n");
buf.a... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" public void foo(Object o) {\n");
buf.append(" Thread th= (Thread) o;\n");
buf.append(" }\n");
buf.append("}\n");
String expected1= buf.toString();
proposal= (CUCorrectionProposal) prop... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append(" return null;\n");
buf.append(" }\n");
buf.append("}\n");
pack1.createCompilationUnit("Container.java", buf.toString(), false, null);
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("import java.util.ArrayList;\n");
buf.append("public class E {\n");
buf.appe... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append("import java.util.ArrayList;\n");
buf.append("public class E {\n");
buf.append(" public void foo(Container c) {\n");
buf.append(" ArrayList[] lists= (ArrayList[]) c.getLists();\n");
buf.append(" }\n");
buf.append("}\n");
String expected1= buf.toString();
proposal= (CUCorrec... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append(" int time= System.currentTimeMillis();\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, true);
IProblem[] problems= astRoot.getProblems();
assertNumberOf("problems", problems... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append(" long time= System.currentTimeMillis();\n");
buf.append("}\n");
String expected2= buf.toString();
assertEqualStringsIgnoreOrder(new String[] { preview1, preview2 }, new String[] { expected1, expected2 });
}
public void testCastMissingInAssignment() throws Exception {
IPackageFragment pa... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | assertCorrectLabels(proposals);
CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0);
String preview= proposal.getCompilationUnitChange().getPreviewContent();
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("import java.util.Iterator;\n");
buf.append("public class ... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | assertNumberOf("problems", problems.length, 1);
CorrectionContext context= getCorrectionContext(cu, problems[0]);
assertCorrectContext(context);
ArrayList proposals= new ArrayList();
JavaCorrectionProcessor.collectCorrections(context, proposals);
assertNumberOf("proposals", proposals.size(), 1);
asse... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append(" public void foo() {\n");
buf.append(" goo();\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, true);
IProblem[] problems= astRoot.getProblems();... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | String expected1= buf.toString();
proposal= (CUCorrectionProposal) proposals.get(1);
String preview2= proposal.getCompilationUnitChange().getPreviewContent();
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("import java.io.IOException;\n");
buf.append("public class E {\n");
b... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append(" return null;\n");
buf.append(" }\n");
buf.append(" public void foo() {\n");
buf.append(" goo().substring(2);\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= A... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append(" goo().substring(2);\n");
buf.append(" }\n");
buf.append("}\n");
String expected1= buf.toString();
proposal= (CUCorrectionProposal) proposals.get(1);
String preview2= proposal.getCompilationUnitChange().getPreviewContent();
buf= new StringBuffer();
buf.append("package test1;\n... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | StringBuffer buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("import java.io.IOException;\n");
buf.append("import java.text.ParseException;\n");
buf.append("public class E {\n");
buf.append(" public void goo() throws IOException, ParseException {\n");
buf.append(" }\n");
... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append("import java.text.ParseException;\n");
buf.append("public class E {\n");
buf.append(" public void goo() throws IOException, ParseException {\n");
buf.append(" }\n");
buf.append(" public void foo() throws IOException, ParseException {\n");
buf.append(" goo();\n");
buf.app... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | assertEqualStringsIgnoreOrder(new String[] { preview1, preview2 }, new String[] { expected1, expected2 });
}
public void testUnneededCatchBlock() throws Exception {
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
StringBuffer buf= new StringBuffer();
buf.append("package t... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | assertNumberOf("proposals", proposals.size(), 1);
assertCorrectLabels(proposals);
CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0);
String preview= proposal.getCompilationUnitChange().getPreviewContent();
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("import ... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append(" }\n");
buf.append(" public void foo() {\n");
buf.append(" try {\n");
buf.append(" goo();\n");
buf.append(" } catch (IOException e) {\n");
buf.append(" }\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | buf.append(" public void foo() {\n");
buf.append(" goo();\n");
buf.append(" }\n");
buf.append("}\n");
assertEqualString(preview, buf.toString());
}
public void testUnneededCatchBlockWithFinally() throws Exception {
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, ... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | assertCorrectContext(context);
ArrayList proposals= new ArrayList();
JavaCorrectionProcessor.collectCorrections(context, proposals);
assertNumberOf("proposals", proposals.size(), 1);
assertCorrectLabels(proposals);
CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0);
String previ... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | }
IPackageFragment pack2= fSourceFolder.createPackageFragment("test2", false, null);
StringBuffer buf= new StringBuffer();
buf.append("package test2;\n");
buf.append("import java.io.IOException;\n");
buf.append("public interface Inter {\n");
buf.append(" int getCount(Object[] o) throws IOException;\n");
... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java | String preview1= proposal.getCompilationUnitChange().getPreviewContent();
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("import test2.Inter;\n");
buf.append("public abstract class E implements Inter{\n");
buf.append("}\n");
String expected1= buf.toString();
proposal= (CUCorrecti... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | /*******************************************************************************
* Copyright (c) 2000, 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanie... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | import org.eclipse.core.runtime.CoreException;
import org.eclipse.swt.graphics.Image;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.core.dom.*;
import org.eclipse.jdt.internal.corext.codemanipulation.CodeGene... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | }
ICompilationUnit cu= context.getCompilationUnit();
String castType= args[1];
CompilationUnit astRoot= context.getASTRoot();
ASTNode selectedNode= context.getCoveredNode();
if (!(selectedNode instanceof Expression)) {
return;
}
Expression nodeToCast= (Expression) selectedNode;
int parentNodeT... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | Expression expressionCopy= (Expression) rewrite.createCopy(nodeToCast);
Type typeCopy= (Type) rewrite.createPlaceholder(simpleCastType, ASTRewrite.TYPE);
CastExpression castExpression= astRoot.getAST().newCastExpression();
castExpression.setExpression(expressionCopy);
castExpression.setType(typeCopy);
rewr... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | ReplaceCorrectionProposal varProposal= new ReplaceCorrectionProposal(label, cu, type.getStartPosition(), type.getLength(), typeName, 1);
varProposal.getRootTextEdit().add(edit);
proposals.add(varProposal);
}
}
}
public static void addUncaughtExceptionProposals(ICorrectionContext context, List prop... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | }
BodyDeclaration decl= ASTResolving.findParentBodyDeclaration(selectedNode);
if (decl == null) {
return;
}
ITypeBinding[] uncaughtExceptions= ExceptionAnalyzer.perform(decl, Selection.createFromStartLength(selectedNode.getStartPosition(), selectedNode.getLength()));
TryStatement surroundingTry= (Try... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | }
if (decl instanceof MethodDeclaration) {
ASTRewrite rewrite= new ASTRewrite(astRoot);
String label= CorrectionMessages.getString("LocalCorrectionsSubProcessor.addthrows.description");
Image image= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_EXCEPTION);
ASTRewriteCorrectionProposal proposal= new A... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | CatchClause clause= (CatchClause) selectedNode.getParent();
TryStatement tryStatement= (TryStatement) clause.getParent();
ASTRewrite rewrite= new ASTRewrite(tryStatement.getParent());
if (tryStatement.catchClauses().size() > 1 || tryStatement.getFinally() != null) {
rewrite.markAsRemoved(clause);
} ... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | NLSRefactoring refactoring= new NLSRefactoring(cu);
ExternalizeWizard wizard= new ExternalizeWizard(refactoring);
String dialogTitle= CorrectionMessages.getString("LocalCorrectionsSubProcessor.externalizestrings.dialog.title");
new RefactoringStarter().activate(refactoring, wizard, dialogTitle, true);
... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | */
public static void addInstanceAccessToStaticProposals(ICorrectionContext context, List proposals) throws CoreException {
ICompilationUnit cu= context.getCompilationUnit();
CompilationUnit astRoot= context.getASTRoot();
ASTNode selectedNode= context.getCoveredNode();
if (selectedNode == null) {
return;
... |
24,929 | Bug 24929 quick fix: make exception more general [quick fix] | public class DD { void fs() throws MalformedURLException { f(); f1(); } void f() throws IOException{ } void f1() throws MalformedURLException{ } } it'd be cool if qf noticed that it can change the throws clause in fs() to throws IOException (change, not add) | verified fixed | a486bbc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T15:31:04Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | proposal.ensureNoModifications();
proposals.add(proposal);
}
}
}
public static void addUnimplementedMethodsProposals(ICorrectionContext context, List proposals) throws CoreException {
ICompilationUnit cu= context.getCompilationUnit();
ASTNode selectedNode= context.getCoveringNode();
if (selectedNode ==... |
24,919 | Bug 24919 quick fix: native methods do not specify a body either [quick fix] | 20021016 just like abstract ones - so you can offer removing the modifier | verified fixed | 48d74d9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T17:24:05Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java | package org.eclipse.jdt.ui.tests.quickfix;
import java.util.ArrayList;
import java.util.Hashtable;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaProject;
import org.eclip... |
24,919 | Bug 24919 quick fix: native methods do not specify a body either [quick fix] | 20021016 just like abstract ones - so you can offer removing the modifier | verified fixed | 48d74d9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T17:24:05Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java | private static final Class THIS= ModifierCorrectionsQuickFixTest.class;
private IJavaProject fJProject1;
private IPackageFragmentRoot fSourceFolder;
public ModifierCorrectionsQuickFixTest(String name) {
super(name);
}
public static Test suite() {
if (true) {
return new TestSuite(THIS);
} else {
TestS... |
24,919 | Bug 24919 quick fix: native methods do not specify a body either [quick fix] | 20021016 just like abstract ones - so you can offer removing the modifier | verified fixed | 48d74d9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T17:24:05Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java | JavaCore.setOptions(options);
IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore();
store.setValue(PreferenceConstants.CODEGEN__FILE_COMMENTS, false);
store.setValue(PreferenceConstants.CODEGEN__JAVADOC_STUBS, false);
fJProject1= JavaProjectHelper.createJavaProject("TestProject1", "bin");
... |
24,919 | Bug 24919 quick fix: native methods do not specify a body either [quick fix] | 20021016 just like abstract ones - so you can offer removing the modifier | verified fixed | 48d74d9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T17:24:05Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java | CorrectionContext context= getCorrectionContext(cu, problems[0]);
assertCorrectContext(context);
ArrayList proposals= new ArrayList();
JavaCorrectionProcessor.collectCorrections(context, proposals);
assertNumberOf("proposals", proposals.size(), 1);
assertCorrectLabels(proposals);
CUCorrectionProposal... |
24,919 | Bug 24919 quick fix: native methods do not specify a body either [quick fix] | 20021016 just like abstract ones - so you can offer removing the modifier | verified fixed | 48d74d9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T17:24:05Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java | buf.append(" public static void foo() {\n");
buf.append(" E.xoo();\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, true);
IProblem[] problems= astRoot.ge... |
24,919 | Bug 24919 quick fix: native methods do not specify a body either [quick fix] | 20021016 just like abstract ones - so you can offer removing the modifier | verified fixed | 48d74d9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T17:24:05Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java | }
public void testStaticMethodRequestedInOtherType() throws Exception {
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
StringBuffer buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class X {\n");
buf.append(" public void xoo() {\n");
buf.a... |
24,919 | Bug 24919 quick fix: native methods do not specify a body either [quick fix] | 20021016 just like abstract ones - so you can offer removing the modifier | verified fixed | 48d74d9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T17:24:05Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java | assertCorrectLabels(proposals);
CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0);
String preview= proposal.getCompilationUnitChange().getPreviewContent();
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class X {\n");
buf.append(" public static void xo... |
24,919 | Bug 24919 quick fix: native methods do not specify a body either [quick fix] | 20021016 just like abstract ones - so you can offer removing the modifier | verified fixed | 48d74d9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T17:24:05Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java | CompilationUnit astRoot= AST.parseCompilationUnit(cu, true);
IProblem[] problems= astRoot.getProblems();
assertNumberOf("problems", problems.length, 1);
CorrectionContext context= getCorrectionContext(cu, problems[0]);
assertCorrectContext(context);
ArrayList proposals= new ArrayList();
JavaCorrection... |
24,919 | Bug 24919 quick fix: native methods do not specify a body either [quick fix] | 20021016 just like abstract ones - so you can offer removing the modifier | verified fixed | 48d74d9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T17:24:05Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java | buf.append(" }\n");
buf.append("}\n");
pack1.createCompilationUnit("C.java", buf.toString(), false, null);
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E extends C {\n");
buf.append(" public void foo() {\n");
buf.append(" super.xoo();\n");
buf.append(" ... |
24,919 | Bug 24919 quick fix: native methods do not specify a body either [quick fix] | 20021016 just like abstract ones - so you can offer removing the modifier | verified fixed | 48d74d9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T17:24:05Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java | buf.append(" }\n");
buf.append("}\n");
assertEqualString(preview, buf.toString());
}
public void testInvisibleMethodRequestedInOtherPackage() throws Exception {
IPackageFragment pack2= fSourceFolder.createPackageFragment("test2", false, null);
StringBuffer buf= new StringBuffer();
buf.append("package ... |
24,919 | Bug 24919 quick fix: native methods do not specify a body either [quick fix] | 20021016 just like abstract ones - so you can offer removing the modifier | verified fixed | 48d74d9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T17:24:05Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java | CorrectionContext context= getCorrectionContext(cu, problems[0]);
assertCorrectContext(context);
ArrayList proposals= new ArrayList();
JavaCorrectionProcessor.collectCorrections(context, proposals);
assertNumberOf("proposals", proposals.size(), 1);
assertCorrectLabels(proposals);
CUCorrectionProposal... |
24,919 | Bug 24919 quick fix: native methods do not specify a body either [quick fix] | 20021016 just like abstract ones - so you can offer removing the modifier | verified fixed | 48d74d9 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T17:24:05Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ModifierCorrectionsQuickFixTest.java | buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" public void foo() {\n");
buf.append(" C c= new C();\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.