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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24,799 | Bug 24799 Java structure compare fails too many times | Using 1009, when I synchronize with the cvs server and I compare my outgoing changes with the repository contents, I get too many times "Java Structure Compare (Can't Compare Structures)". This didn't happen in the past. I don't know what changed, but this is frustrating and make the whole synchronization process very ... | resolved fixed | 84a2411 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-16T10:04:45Z | 2002-10-15T16:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java | }
}
public JavaStructureCreator() {
}
/**
* Returns the name that appears in the enclosing pane title bar.
*/
public String getName() {
return CompareMessages.getString("JavaStructureViewer.title");
}
/**
* Returns a tree of JavaNodes for the given input
* which must implement the IStreamConte... |
24,799 | Bug 24799 Java structure compare fails too many times | Using 1009, when I synchronize with the cvs server and I compare my outgoing changes with the repository contents, I get too many times "Java Structure Compare (Can't Compare Structures)". This didn't happen in the past. I don't know what changed, but this is frustrating and make the whole synchronization process very ... | resolved fixed | 84a2411 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-16T10:04:45Z | 2002-10-15T16:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java | }
}
if (contents != null) {
int n= contents.length();
buffer= new char[n];
contents.getChars(0, n, buffer, 0);
doc= new Document(contents);
DocumentManager.put(input, doc);
IDocumentPartitioner dp= JavaCompareUtilities.createJavaPartitioner();
if (dp != null) {
doc.set... |
24,799 | Bug 24799 Java structure compare fails too many times | Using 1009, when I synchronize with the cvs server and I compare my outgoing changes with the repository contents, I get too many times "Java Structure Compare (Can't Compare Structures)". This didn't happen in the past. I don't know what changed, but this is frustrating and make the whole synchronization process very ... | resolved fixed | 84a2411 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-16T10:04:45Z | 2002-10-15T16:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java | if (buffer == null) {
contents= doc.get();
int n= contents.length();
buffer= new char[n];
contents.getChars(0, n, buffer, 0);
}
JavaParseTreeBuilder builder= new JavaParseTreeBuilder(root, buffer);
SourceElementParser parser= new SourceElementParser(builder,
new ProblemFactory(), new Comp... |
24,799 | Bug 24799 Java structure compare fails too many times | Using 1009, when I synchronize with the cvs server and I compare my outgoing changes with the repository contents, I get too many times "Java Structure Compare (Can't Compare Structures)". This didn't happen in the past. I don't know what changed, but this is frustrating and make the whole synchronization process very ... | resolved fixed | 84a2411 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-16T10:04:45Z | 2002-10-15T16:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java | IDocument document= ((JavaNode)node).getDocument();
IEditableContent bca= (IEditableContent) input;
String contents= document.get();
byte[] bytes;
try {
bytes= contents.getBytes(ResourcesPlugin.getEncoding());
} catch (UnsupportedEncodingException e) {
bytes= contents.getBytes();
}
bca... |
24,799 | Bug 24799 Java structure compare fails too many times | Using 1009, when I synchronize with the cvs server and I compare my outgoing changes with the repository contents, I get too many times "Java Structure Compare (Can't Compare Structures)". This didn't happen in the past. I don't know what changed, but this is frustrating and make the whole synchronization process very ... | resolved fixed | 84a2411 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-16T10:04:45Z | 2002-10-15T16:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java | } catch (CoreException ex) {
JavaPlugin.log(ex);
return null;
}
if (ignoreWhiteSpace) {
StringBuffer buf= new StringBuffer();
char[] b= content.toCharArray();
IScanner scanner= ToolFactory.createScanner(true, true, false, false);
scanner.setSource(b);
try {
int t... |
24,799 | Bug 24799 Java structure compare fails too many times | Using 1009, when I synchronize with the cvs server and I compare my outgoing changes with the repository contents, I get too many times "Java Structure Compare (Can't Compare Structures)". This didn't happen in the past. I don't know what changed, but this is frustrating and make the whole synchronization process very ... | resolved fixed | 84a2411 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-16T10:04:45Z | 2002-10-15T16:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java | break;
}
}
content= buf.toString();
} catch (InvalidInputException ex) {
}
}
return content;
}
/**
* Returns true since this IStructureCreator can rewrite the diff tree
* in order to fold certain combinations of additons and deletions.
*/
public boolean canRewriteTree() {
return tru... |
24,799 | Bug 24799 Java structure compare fails too many times | Using 1009, when I synchronize with the cvs server and I compare my outgoing changes with the repository contents, I get too many times "Java Structure Compare (Can't Compare Structures)". This didn't happen in the past. I don't know what changed, but this is frustrating and make the whole synchronization process very ... | resolved fixed | 84a2411 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-16T10:04:45Z | 2002-10-15T16:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java | if (jn == null)
continue;
int type= jn.getTypeCode();
if (type == JavaNode.METHOD || type == JavaNode.CONSTRUCTOR) {
String name= jn.extractMethodName();
RewriteInfo nameInfo= (RewriteInfo) map.get(name);
if (nameInfo == null) {
nameInfo= new RewriteInfo();
map.put(name... |
24,799 | Bug 24799 Java structure compare fails too many times | Using 1009, when I synchronize with the cvs server and I compare my outgoing changes with the repository contents, I get too many times "Java Structure Compare (Can't Compare Structures)". This didn't happen in the past. I don't know what changed, but this is frustrating and make the whole synchronization process very ... | resolved fixed | 84a2411 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-16T10:04:45Z | 2002-10-15T16:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java | switch (diff.getKind() & Differencer.CHANGE_TYPE_MASK) {
case Differencer.ADDITION:
case Differencer.DELETION:
if (type != JavaNode.CONSTRUCTOR)
nameInfo.setDiff((ICompareInput)diff);
if (argInfo != null)
argInfo.setDiff((ICompareInput)diff);
break;
default... |
24,799 | Bug 24799 Java structure compare fails too many times | Using 1009, when I synchronize with the cvs server and I compare my outgoing changes with the repository contents, I get too many times "Java Structure Compare (Can't Compare Structures)". This didn't happen in the past. I don't know what changed, but this is frustrating and make the whole synchronization process very ... | resolved fixed | 84a2411 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-16T10:04:45Z | 2002-10-15T16:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java | DiffNode d= (DiffNode) differencer.findDifferences(true, null, root, i.fAncestor, i.fLeft, i.fRight);
if (d != null) {
d.setDontExpand(true);
Iterator it2= i.fChildren.iterator();
while (it2.hasNext()) {
IDiffElement rd= (IDiffElement) it2.next();
root.removeToRoot(rd);
d.add(rd);
... |
24,799 | Bug 24799 Java structure compare fails too many times | Using 1009, when I synchronize with the cvs server and I compare my outgoing changes with the repository contents, I get too many times "Java Structure Compare (Can't Compare Structures)". This didn't happen in the past. I don't know what changed, but this is frustrating and make the whole synchronization process very ... | resolved fixed | 84a2411 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-16T10:04:45Z | 2002-10-15T16:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java | if (structure == null)
return null;
String[] path= createPath((IJavaElement) selector);
return find(structure, path, 0);
}
private static String[] createPath(IJavaElement je) {
List args= new ArrayList();
while (je != null) {
String name= JavaCompareUtilities.getJav... |
24,799 | Bug 24799 Java structure compare fails too many times | Using 1009, when I synchronize with the cvs server and I compare my outgoing changes with the repository contents, I get too many times "Java Structure Compare (Can't Compare Structures)". This didn't happen in the past. I don't know what changed, but this is frustrating and make the whole synchronization process very ... | resolved fixed | 84a2411 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-16T10:04:45Z | 2002-10-15T16:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java | for (int i= 0; i < n; i++)
path[i]= (String) args.get(n-1-i);
return path;
}
/**
* Recursivly extracts the given path from the tree.
*/
private static IStructureComparator find(IStructureComparator tree, String[] path, int index) {
if (tree != null) {
Object[] children= tree.getChildren();
if ... |
24,799 | Bug 24799 Java structure compare fails too many times | Using 1009, when I synchronize with the cvs server and I compare my outgoing changes with the repository contents, I get too many times "Java Structure Compare (Can't Compare Structures)". This didn't happen in the past. I don't know what changed, but this is frustrating and make the whole synchronization process very ... | resolved fixed | 84a2411 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-16T10:04:45Z | 2002-10-15T16:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java | }
}
}
return null;
}
/**
* Returns true if the given IJavaElement maps to a JavaNode.
* The JavaHistoryAction uses this function to determine whether
* a selected Java element can be replaced by some piece of
* code from the local history.
*/
static boolean hasEdition(IJavaElement je) {
if (je ins... |
22,496 | Bug 22496 Keyboard execution of all auto fix hints in current cursor line [quick fix] | To allow fast typing, without having to worry about casts, it would be nice, if CTRL + 1 (auto fix) could find all the hints that are available for the current line. An example: public class AutoCast { Object getObject(){ return this; } void autoCast(){ AutoCast castMe = getObject(); } } My cursor is behind the semi-co... | verified fixed | 682a3e6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-18T15:48:53Z | 2002-08-16T12:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/JavaCorrectionAssistant.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... |
22,496 | Bug 22496 Keyboard execution of all auto fix hints in current cursor line [quick fix] | To allow fast typing, without having to worry about casts, it would be nice, if CTRL + 1 (auto fix) could find all the hints that are available for the current line. An example: public class AutoCast { Object getObject(){ return this; } void autoCast(){ AutoCast castMe = getObject(); } } My cursor is behind the semi-co... | verified fixed | 682a3e6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-18T15:48:53Z | 2002-08-16T12:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/JavaCorrectionAssistant.java | /**
* Constructor for CorrectionAssistant.
*/
public JavaCorrectionAssistant(IEditorPart editor) {
super();
JavaCorrectionProcessor processor= new JavaCorrectionProcessor(editor);
setContentAssistProcessor(processor, IDocument.DEFAULT_CONTENT_TYPE);
setContentAssistProcessor(processor, JavaPartitionSca... |
22,496 | Bug 22496 Keyboard execution of all auto fix hints in current cursor line [quick fix] | To allow fast typing, without having to worry about casts, it would be nice, if CTRL + 1 (auto fix) could find all the hints that are available for the current line. An example: public class AutoCast { Object getObject(){ return this; } void autoCast(){ AutoCast castMe = getObject(); } } My cursor is behind the semi-co... | verified fixed | 682a3e6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-18T15:48:53Z | 2002-08-16T12:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/JavaCorrectionAssistant.java | enableAutoActivation(false);
enableAutoInsert(false);
setContextInformationPopupOrientation(CONTEXT_INFO_ABOVE);
setInformationControlCreator(getInformationControlCreator());
JavaTextTools textTools= JavaPlugin.getDefault().getJavaTextTools();
IColorManager manager= textTools.getColorManager();
IPreferen... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | /**********************************************************************
Copyright (c) 2000, 2002 IBM 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 accompanies this distribution, and is available at
http://www... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | import org.eclipse.swt.widgets.Canvas;
import org.eclipse.swt.widgets.Display;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.ecl... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | import org.eclipse.ui.part.FileEditorInput;
import org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel;
import org.eclipse.ui.texteditor.MarkerAnnotation;
import org.eclipse.ui.texteditor.ResourceMarkerAnnotationModel;
import org.eclipse.jdt.core.IBuffer;
import org.eclipse.jdt.core.IBufferFactory;
import org.eclip... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | public _FileSynchronizer(IFileEditorInput fileEditorInput) {
super(fileEditorInput);
}
};
/**
* Bundle of all required informations to allow working copy management.
*/
protected class CompilationUnitInfo extends FileInfo {
ICompilationUnit fCopy;
CompilationUnitInfo(IDocument docum... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | private static Image fgImage;
private static boolean fgImageInitialized= false;
private List fOverlaids;
private IProblem fProblem;
private Image fImage;
private boolean fImageInitialized= false;
public ProblemAnnotation(IProblem problem) {
fProblem= problem;
setLayer(MarkerAnnotat... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | }
/*
* @see Annotation#paint
*/
public void paint(GC gc, Canvas canvas, Rectangle r) {
initializeImage();
if (fImage != null)
drawImage(fImage, gc, canvas, r, SWT.CENTER, SWT.CENTER);
}
/*
* @see IProblemAnnotation#getImage(Display)
*/
public Image getImage(Display... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | }
/*
* @see IProblemAnnotation#isWarning()
*/
public boolean isWarning() {
return isProblem() && fProblem.isWarning();
}
/*
* @see IProblemAnnotation#isError()
*/
public boolean isError() {
return isProblem() && fProblem.isError();
}
/*
* @see IProblemAnnotation#getA... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | return !isTask();
}
/*
* @see IProblemAnnotation#isTask()
*/
public boolean isTask() {
return IProblem.Task == fProblem.getID();
}
/*
* @see IProblemAnnotation#isRelevant()
*/
public boolean isRelevant() {
return true;
}
/*
* @see IProblemAnnotation#hasOve... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | fOverlaids.add(annotation);
}
/*
* @see IProblemAnnotation#removeOverlaid(IProblemAnnotation)
*/
public void removeOverlaid(IProblemAnnotation annotation) {
if (fOverlaids != null) {
fOverlaids.remove(annotation);
if (fOverlaids.size() == 0)
fOverlaids= null;
}
}
/*
... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | static class Entry {
Position fPosition;
Object fValue;
};
private List fList= new ArrayList(2);
private int fAnchor= 0;
public ReverseMap() {
}
public Object get(Position position) {
Entry entry;
int length= fList.size();
for (int i= fAnchor; i < length;... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | entry= (Entry) fList.get(i);
if (entry.fPosition.equals(position)) {
fAnchor= i;
return entry.fValue;
}
}
for (int i= 0; i < fAnchor; i++) {
entry= (Entry) fList.get(i);
if (entry.fPosition.equals(position)) {
fAnchor= i;
return entry.fValue;
}
}
... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | public void put(Position position, Object value) {
int index= getIndex(position);
if (index == -1) {
Entry entry= new Entry();
entry.fPosition= position;
entry.fValue= value;
fList.add(entry);
} else {
Entry entry= (Entry) fList.get(index);
entry.fValue= value;
}
}
... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | private IFileEditorInput fInput;
private List fCollectedProblems;
private List fGeneratedAnnotations;
private IProgressMonitor fProgressMonitor;
private boolean fIsActive= false;
private ReverseMap fReverseMap= new ReverseMap();
private List fPreviouslyShadowed= null;
private List fCurrentlySh... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | protected Position createPositionFromProblem(IProblem problem) {
int start= problem.getSourceStart();
if (start < 0)
return null;
int length= problem.getSourceEnd() - problem.getSourceStart() + 1;
if (length < 0)
return null;
return new Position(start, length);
}
/*
... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | public void acceptProblem(IProblem problem) {
if (isActive())
fCollectedProblems.add(problem);
}
/*
* @see IProblemRequestor#endReporting()
*/
public void endReporting() {
if (!isActive())
return;
if (fProgressMonitor != null && fProgressMonitor.isCanceled())
return;
... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | Iterator e= fCollectedProblems.iterator();
while (e.hasNext()) {
IProblem problem= (IProblem) e.next();
if (fProgressMonitor != null && fProgressMonitor.isCanceled()) {
isCanceled= true;
break;
}
Position position= createPositionFromProblem(prob... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | if (temporaryProblemsChanged)
fireModelChanged(new CompilationUnitAnnotationModelEvent(this, getResource(), false));
}
private void removeMarkerOverlays(boolean isCanceled) {
if (isCanceled) {
fCurrentlyShadowed.addAll(fPreviouslyShadowed);
} else {
Iterator e= fPreviouslyShadowed.itera... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | List list= (List) value;
for (Iterator e = list.iterator(); e.hasNext();)
setOverlay(e.next(), problemAnnotation);
} else {
setOverlay(value, problemAnnotation);
}
}
/**
* Tells this annotation model to collect temporary problems from now on.
*/
private void startCollectingP... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | */
protected void fireModelChanged() {
fireModelChanged(new CompilationUnitAnnotationModelEvent(this, getResource(), true));
}
/*
* @see IProblemRequestor#isActive()
*/
public boolean isActive() {
return fIsActive && (fCollectedProblems != null);
}
/*
* @see IProblemRequest... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | }
private Object getAnnotations(Position position) {
return fReverseMap.get(position);
}
/*
* @see AnnotationModel#addAnnotation(Annotation, Position, boolean)
*/
protected void addAnnotation(Annotation annotation, Position position, boolean fireModelChanged) {
super.addAnnotation... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | super.removeAllAnnotations(fireModelChanged);
fReverseMap.clear();
}
/*
* @see AnnotationModel#removeAnnotation(Annotation, boolean)
*/
protected void removeAnnotation(Annotation annotation, boolean fireModelChanged) {
Position position= getPosition(annotation);
Object cached= fReverseM... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | private IDocument internalGetDocument(IFileEditorInput input) throws CoreException {
IDocument document= getDocument(input);
if (document != null)
return document;
return CompilationUnitDocumentProvider.this.createDocument(input);
}
public IBuffer createBuffer(IOpenable owner) {
if (owner... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | initializeDocument(document);
}
DocumentAdapter adapter= new DocumentAdapter(unit, document, new DefaultLineTracker(), CompilationUnitDocumentProvider.this, providerKey);
adapter.setStatus(status);
return adapter;
}
} catch (CoreException x) {
handleCoreExcept... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | ((IAnnotationModelListener) listeners[i]).modelChanged(model);
}
}
/**
* @see IAnnotationModelListenerExtension#modelChanged(AnnotationModelEvent)
*/
public void modelChanged(AnnotationModelEvent event) {
Object[] listeners= fListenerList.getListeners();
for (int i= 0; i < listeners.length;... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | /*
* @see IDocumentExtension#startSequentialRewrite(boolean)
*/
synchronized public void startSequentialRewrite(boolean normalized) {
super.startSequentialRewrite(normalized);
}
/*
* @see IDocumentExtension#stopSequentialRewrite()
*/
synchronized public void stopSequentialRewrite() {
... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | /*
* @see IDocument#getChar(int)
*/
synchronized public char getChar(int offset) throws BadLocationException {
return super.getChar(offset);
}
/*
* @see IDocument#replace(int, int, String)
*/
synchronized public void replace(int offset, int length, String text) throws BadLocationExce... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | private IBufferFactory fBufferFactory= new BufferFactory();
private boolean fIsAboutToSave= false;
private ISavePolicy fSavePolicy;
private IPropertyChangeListener fPropertyListener;
private GlobalAnnotationModelListener fGlobalAnnotationModelListener;
/**
* Constructor
*/
public CompilationUnitD... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | public void setSavePolicy(ISavePolicy savePolicy) {
fSavePolicy= savePolicy;
}
/**
* Creates a compilation unit from the given file.
*
* @param file the file from which to create the compilation unit
*/
protected ICompilationUnit createCompilationUnit(IFile file) {
Object element= JavaCore.create(file... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | if ( !(element instanceof IFileEditorInput))
return super.createElementInfo(element);
IFileEditorInput input= (IFileEditorInput) element;
ICompilationUnit original= createCompilationUnit(input.getFile());
if (original != null) {
try {
IProgressMonitor monitor= new NullProgressMonitor();
... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | _FileSynchronizer f= new _FileSynchronizer(input);
f.install();
CompilationUnitInfo info= new CompilationUnitInfo(a.getDocument(), m, f, c);
info.setModificationStamp(computeModificationStamp(input.getFile()));
info.fStatus= a.getStatus();
if (r instanceof IProblemRequestorExtension) {
... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | cuInfo.fCopy.destroy();
cuInfo.fModel.removeAnnotationModelListener(fGlobalAnnotationModelListener);
}
super.disposeElementInfo(element, info);
}
/*
* @see AbstractDocumentProvider#doSaveDocument(IProgressMonitor, Object, IDocument, boolean)
*/
protected void doSaveDocument(IProgressMonitor monitor, ... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | return;
}
if (resource != null && !overwrite)
checkSynchronizationState(info.fModificationStamp, resource);
if (fSavePolicy != null)
fSavePolicy.preSave(info.fCopy);
fireElementStateChanging(element);
try {
fIsAboutToSave= true;
info.fCopy.commit(overwrite, monitor)... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | AbstractMarkerAnnotationModel model= (AbstractMarkerAnnotationModel) info.fModel;
model.updateMarkers(info.fDocument);
if (resource != null)
info.setModificationStamp(computeModificationStamp(resource));
if (fSavePolicy != null) {
ICompilationUnit unit= fSavePolicy.postSave(original);
if (... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | IFileEditorInput input= (IFileEditorInput) element;
return new CompilationUnitAnnotationModel(input);
}
protected void initializeDocument(IDocument document) {
if (document != null) {
JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools();
IDocumentPartitioner partitioner= tools.createDocumentPar... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | /*
* @see AbstractDocumentProvider#resetDocument(Object)
*/
public void resetDocument(Object element) throws CoreException {
if (element == null)
return;
ElementInfo elementInfo= getElementInfo(element);
if (elementInfo instanceof CompilationUnitInfo) {
CompilationUnitInfo info= (CompilationUnitI... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | IFileEditorInput input= new FileEditorInput(file);
document= super.createDocument(input);
} else {
document= new Document();
}
} catch (CoreException x) {
document= new Document();
status= x.getStatus();
}
fireElementContentAboutToBeReplaced(element);
removeUnch... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | *
* @param monitor the progress monitor
* @param element the element to which to save
* @param document the document to save
* @param overwrite <code>true</code> if the save should be enforced
*/
public void saveDocumentContent(IProgressMonitor monitor, Object element, IDocument document, boolean overwrite)... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | public IResource getUnderlyingResource(Object element) {
if (element instanceof IFileEditorInput) {
IFileEditorInput input= (IFileEditorInput) element;
return input.getFile();
}
return null;
}
/*
* @see IWorkingCopyManager#connect(IEditorInput)
*/
public void connect(IEditorInput input) throws Core... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | return info.fCopy;
}
return null;
}
/**
* Gets the BufferFactory.
*/
public IBufferFactory getBufferFactory() {
return fBufferFactory;
}
public void shutdown() {
JavaPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(fPropertyListener);
Iterator e= getConnectedElements... |
25,126 | Bug 25126 Cannot open cu outside classpath | Build 20021018 + latest jdt core 1. Create Java project 'P' with 'src' source folder 2. Create file P/X.java Observe: You get the following exception: Java Model Exception: Java Model Status [ does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:489) at org.eclipse.jdt.... | verified fixed | 0cd8600 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T09:18:34Z | 2002-10-21T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java | * Switches the state of problem acceptance according to the value in the preference store.
*/
protected void enableHandlingTemporaryProblems() {
boolean enable= isHandlingTemporaryProblems();
for (Iterator iter= getConnectedElements(); iter.hasNext();) {
ElementInfo element= getElementInfo(iter.next());
if... |
25,144 | Bug 25144 Autofix for unimplemented methods does not use argument names from declaration [quick fix] | build 20021018 - in self hosting workspace, - ensure SWT has source - create a new subclass of org.eclipse.swt.widgets.Layout called TestLayout - notice that the two methods (computeSize and layout) have argument names from the declaration, like: protected void layout(Composite composite, boolean flushCache) - delete m... | resolved fixed | 3ab716c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:05:23Z | 2002-10-21T19:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnimplementedMethodsCompletionProposal.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... |
25,144 | Bug 25144 Autofix for unimplemented methods does not use argument names from declaration [quick fix] | build 20021018 - in self hosting workspace, - ensure SWT has source - create a new subclass of org.eclipse.swt.widgets.Layout called TestLayout - notice that the two methods (computeSize and layout) have argument names from the declaration, like: protected void layout(Composite composite, boolean flushCache) - delete m... | resolved fixed | 3ab716c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:05:23Z | 2002-10-21T19:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnimplementedMethodsCompletionProposal.java | ******************************************************************************/
package org.eclipse.jdt.internal.ui.text.correction;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.dom.AST;
import... |
25,144 | Bug 25144 Autofix for unimplemented methods does not use argument names from declaration [quick fix] | build 20021018 - in self hosting workspace, - ensure SWT has source - create a new subclass of org.eclipse.swt.widgets.Layout called TestLayout - notice that the two methods (computeSize and layout) have argument names from the declaration, like: protected void layout(Composite composite, boolean flushCache) - delete m... | resolved fixed | 3ab716c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:05:23Z | 2002-10-21T19:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnimplementedMethodsCompletionProposal.java | setImage(JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE));
fTypeNode= typeNode;
}
/* (non-Javadoc)
* @see org.eclipse.jdt.internal.ui.text.correction.ASTRewriteCorrectionProposal#getRewrite()
*/
protected ASTRewrite getRewrite() throws CoreException {
ITypeBinding binding;
List bodyDecls;... |
25,144 | Bug 25144 Autofix for unimplemented methods does not use argument names from declaration [quick fix] | build 20021018 - in self hosting workspace, - ensure SWT has source - create a new subclass of org.eclipse.swt.widgets.Layout called TestLayout - notice that the two methods (computeSize and layout) have argument names from the declaration, like: protected void layout(Composite composite, boolean flushCache) - delete m... | resolved fixed | 3ab716c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:05:23Z | 2002-10-21T19:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnimplementedMethodsCompletionProposal.java | MethodDeclaration newMethodDecl= createNewMethodDeclaration(ast, methods[i], rewrite, settings);
rewrite.markAsInserted(newMethodDecl);
bodyDecls.add(newMethodDecl);
}
return rewrite;
}
private MethodDeclaration createNewMethodDeclaration(AST ast, IMethodBinding binding, ASTRewrite rewrite, CodeGeneration... |
25,144 | Bug 25144 Autofix for unimplemented methods does not use argument names from declaration [quick fix] | build 20021018 - in self hosting workspace, - ensure SWT has source - create a new subclass of org.eclipse.swt.widgets.Layout called TestLayout - notice that the two methods (computeSize and layout) have argument names from the declaration, like: protected void layout(Composite composite, boolean flushCache) - delete m... | resolved fixed | 3ab716c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:05:23Z | 2002-10-21T19:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnimplementedMethodsCompletionProposal.java | for (int i= 0; i < excTypes.length; i++) {
ITypeBinding curr= excTypes[i];
addImport(curr);
thrownExceptions.add(ast.newSimpleName(curr.getName()));
}
Block body= ast.newBlock();
decl.setBody(body);
Expression expression= ASTResolving.getInitExpression(decl.getReturnType());
if (expression != ... |
25,144 | Bug 25144 Autofix for unimplemented methods does not use argument names from declaration [quick fix] | build 20021018 - in self hosting workspace, - ensure SWT has source - create a new subclass of org.eclipse.swt.widgets.Layout called TestLayout - notice that the two methods (computeSize and layout) have argument names from the declaration, like: protected void layout(Composite composite, boolean flushCache) - delete m... | resolved fixed | 3ab716c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:05:23Z | 2002-10-21T19:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnimplementedMethodsCompletionProposal.java | javadoc.setComment(buf.toString());
}
decl.setJavadoc(javadoc);
}
return decl;
}
private void findUnimplementedInterfaceMethods(ITypeBinding typeBinding, ArrayList visited, ArrayList allMethods, ArrayList toImplement) {
visited.add(typeBinding);
IMethodBinding[] typeMethods= typeBinding.getDecla... |
25,144 | Bug 25144 Autofix for unimplemented methods does not use argument names from declaration [quick fix] | build 20021018 - in self hosting workspace, - ensure SWT has source - create a new subclass of org.eclipse.swt.widgets.Layout called TestLayout - notice that the two methods (computeSize and layout) have argument names from the declaration, like: protected void layout(Composite composite, boolean flushCache) - delete m... | resolved fixed | 3ab716c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:05:23Z | 2002-10-21T19:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnimplementedMethodsCompletionProposal.java | if (!visited.contains(superInterfaces[i])) {
findUnimplementedInterfaceMethods(superInterfaces[i], visited, allMethods, toImplement);
}
}
}
private IMethodBinding[] evalUnimplementedMethods(ITypeBinding typeBinding) {
ArrayList allMethods= new ArrayList();
ArrayList toImplement= new ArrayList();
IMe... |
25,144 | Bug 25144 Autofix for unimplemented methods does not use argument names from declaration [quick fix] | build 20021018 - in self hosting workspace, - ensure SWT has source - create a new subclass of org.eclipse.swt.widgets.Layout called TestLayout - notice that the two methods (computeSize and layout) have argument names from the declaration, like: protected void layout(Composite composite, boolean flushCache) - delete m... | resolved fixed | 3ab716c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:05:23Z | 2002-10-21T19:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnimplementedMethodsCompletionProposal.java | }
for (int i= 0; i < allMethods.size(); i++) {
IMethodBinding curr= (IMethodBinding) allMethods.get(i);
int modifiers= curr.getModifiers();
if ((Modifier.isAbstract(modifiers) || curr.getDeclaringClass().isInterface()) && (typeBinding != curr.getDeclaringClass())) {
toImplement.add(curr);
}
}
... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | package org.eclipse.jdt.ui.tests.astrewrite;
import java.util.Hashtable;
import java.util.List;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | private static final Class THIS= ASTRewritingStatementsTest.class;
private IJavaProject fJProject1;
private IPackageFragmentRoot fSourceFolder;
public ASTRewritingStatementsTest(String name) {
super(name);
}
public static Test suite() {
if (true) {
return new TestSuite(THIS);
} else {
TestSuite suite... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | public void testAdd() throws Exception {
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
{
StringBuffer buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class C {\n");
buf.append(" public Object foo() {\n");
buf.append(" if (thi... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | proposal.apply(null);
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class C {\n");
buf.append(" public Object foo() {\n");
buf.append(" if (this.equals(new Object())) {\n");
buf.append(" toString();\n");
buf.append(" }\n");
buf.append... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);
ASTRewrite rewrite= new ASTRewrite(astRoot);
TypeDeclaration type= findTypeDeclaration(astRoot, "D");
MethodDeclaration methodDecl= findMethodDeclaration(type, "hoo");
Block block= methodDecl.getBody();
assertTrue("No block" , block != null... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | buf.append(" return false;\n");
buf.append(" }\n");
buf.append("}\n");
assertEqualString(cu.getSource(), buf.toString());
clearRewrite(rewrite);
}
{
StringBuffer buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" ... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | ExpressionStatement statement1= ast.newExpressionStatement(invocation1);
rewrite.markAsInserted(statement1);
MethodInvocation invocation2= ast.newMethodInvocation();
invocation2.setName(ast.newSimpleName("foo"));
ExpressionStatement statement2= ast.newExpressionStatement(invocation2);
rewrite... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | buf.append(" }\n");
buf.append("}\n");
assertEqualString(cu.getSource(), buf.toString());
clearRewrite(rewrite);
}
}
public void testRemove() throws Exception {
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
{
StringBuffer buf= new StringBuff... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | List statements= block.statements();
assertTrue("No statements in block", !statements.isEmpty());
rewrite.markAsRemoved((ASTNode) statements.get(0));
ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal("", cu, rewrite, 10, null);
proposal.getCompilationUnitChange().setSave(true... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("D.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);
ASTRewrite rewrite= new ASTRewrite(astRoot);
TypeDeclaration type= findTypeDeclaration(astRoot, "D");
... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | buf.append(" }\n");
buf.append(" public void hoo(int p1, Object p2) {\n");
buf.append(" return;\n");
buf.append(" }\n");
buf.append("}\n");
assertEqualString(cu.getSource(), buf.toString());
clearRewrite(rewrite);
}
{
StringBuffer buf= new StringBuffer();
buf.app... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | rewrite.markAsRemoved((ASTNode) statements.get(0));
rewrite.markAsRemoved((ASTNode) statements.get(1));
rewrite.markAsRemoved((ASTNode) statements.get(2));
ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal("", cu, rewrite, 10, null);
proposal.getCompilationUnitChange().setSave(true... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | buf.append(" toString();\n");
buf.append(" }\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("C.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);
ASTRewrite rewrite= new ASTRewrite(a... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | buf.append(" }\n");
buf.append("}\n");
assertEqualString(cu.getSource(), buf.toString());
clearRewrite(rewrite);
}
{
StringBuffer buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class D {\n");
buf.append(" public Object goo() {\n");
buf.append(" ... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | ReturnStatement returnStatement= (ReturnStatement) statements.get(0);
Expression expr= returnStatement.getExpression();
Expression modified= ASTResolving.getInitExpression(methodDecl.getReturnType());
rewrite.markAsReplaced(expr, modified);
ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrecti... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | StringBuffer buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" public void foo() {\n");
buf.append(" break;\n");
buf.append(" break label;\n");
buf.append(" break label;\n");
buf.append(" }\n");
buf.append("}\n");
ICompi... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | }
{
BreakStatement statement= (BreakStatement) statements.get(1);
SimpleName label= statement.getLabel();
assertTrue("Has no label", label != null);
SimpleName newLabel= ast.newSimpleName("label2");
rewrite.markAsReplaced(label, newLabel);
}
{
BreakStatement statement= (BreakStatement... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | buf.append(" break;\n");
buf.append(" }\n");
buf.append("}\n");
assertEqualString(cu.getSource(), buf.toString());
clearRewrite(rewrite);
}
public void testConstructorInvocation() throws Exception {
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
StringBuffe... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | {
Block block= declarations[0].getBody();
List statements= block.statements();
assertTrue("Number of statements not 1", statements.size() == 1);
ConstructorInvocation invocation= (ConstructorInvocation) statements.get(0);
List arguments= invocation.arguments();
StringLiteral stringLiteral1=... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal("", cu, rewrite, 10, null);
proposal.getCompilationUnitChange().setSave(true);
proposal.apply(null);
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" public E(String e, Str... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);
ASTRewrite rewrite= new ASTRewrite(astRoot);
AST ast= astRoot.getAST();
assertTrue("Parse errors", (astRoot.getFlags() & ASTNode.MALFORMED) == 0);
Typ... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | }
{
ContinueStatement statement= (ContinueStatement) statements.get(2);
SimpleName label= statement.getLabel();
assertTrue("Has no label", label != null);
rewrite.markAsRemoved(label);
}
ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal("", cu, rewrite, 10, null);
... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | StringBuffer buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" public void foo() {\n");
buf.append(" do {\n");
buf.append(" System.beep();\n");
buf.append(" } while (i == j);\n");
buf.append(" }\n");
buf.append("}\n")... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | newBody.statements().add(ast.newExpressionStatement(invocation));
rewrite.markAsReplaced(doStatement.getBody(), newBody);
BooleanLiteral literal= ast.newBooleanLiteral(true);
rewrite.markAsReplaced(doStatement.getExpression(), literal);
}
ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrec... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | buf.append(" public void foo() {\n");
buf.append(" i= 0;\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);
ASTRewrite rewrite= new ASTRewrite(astR... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | }
ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal("", cu, rewrite, 10, null);
proposal.getCompilationUnitChange().setSave(true);
proposal.apply(null);
buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" public void f... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | buf.append(" for (;;) {\n");
buf.append(" }\n");
buf.append(" for (i= 0; i < len; i++) {\n");
buf.append(" }\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
CompilationUnit astRoot= AS... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | Assignment assignment2= ast.newAssignment();
assignment2.setLeftHandSide(ast.newSimpleName("j"));
assignment2.setOperator(Assignment.Operator.ASSIGN);
assignment2.setRightHandSide(ast.newNumberLiteral("4"));
rewrite.markAsInserted(assignment2);
initializers.add(assignment2);
BooleanLiteral... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | rewrite.markAsReplaced(forStatement.getBody(), newBody);
}
{
ForStatement forStatement= (ForStatement) statements.get(1);
List initializers= forStatement.initializers();
assertTrue("Number of initializers not 2", initializers.size() == 2);
rewrite.markAsRemoved((ASTNode) initializers.get(0));
... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | }
{
ForStatement forStatement= (ForStatement) statements.get(3);
Assignment assignment= ast.newAssignment();
assignment.setLeftHandSide(ast.newSimpleName("j"));
assignment.setOperator(Assignment.Operator.ASSIGN);
assignment.setRightHandSide(ast.newNumberLiteral("3"));
forStatement.initia... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | VariableDeclarationExpression varDecl= ast.newVariableDeclarationExpression(varFragment);
varFragment.setName(ast.newSimpleName(leftHandSide.getIdentifier()));
Expression placeholder= (Expression) rewrite.createCopy(assignment.getRightHandSide());
varFragment.setInitializer(placeholder);
varDecl.setType... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | buf.append(" }\n");
buf.append(" }\n");
buf.append("}\n");
assertEqualString(cu.getSource(), buf.toString());
clearRewrite(rewrite);
}
public void testIfStatement() throws Exception {
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
StringBuffer buf= new... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | TypeDeclaration type= findTypeDeclaration(astRoot, "E");
MethodDeclaration methodDecl= findMethodDeclaration(type, "foo");
Block block= methodDecl.getBody();
List statements= block.statements();
assertTrue("Number of statements not 2", statements.size() == 2);
{
IfStatement ifStatement= (IfStatement) stat... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | rewrite.markAsInserted(newBody);
ifStatement.setElseStatement(newBody);
}
ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal("", cu, rewrite, 10, null);
proposal.getCompilationUnitChange().setSave(true);
proposal.apply(null);
buf= new StringBuffer();
buf.append("p... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
StringBuffer buf= new StringBuffer();
buf.append("package test1;\n");
buf.append("public class E {\n");
buf.append(" public void foo() {\n");
buf.append(" label: if (i == 0) {\n");
buf.append(" System.bee... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | Assignment newExpression= ast.newAssignment();
newExpression.setLeftHandSide(ast.newSimpleName("x"));
newExpression.setRightHandSide(ast.newNumberLiteral("1"));
newExpression.setOperator(Assignment.Operator.ASSIGN);
Statement newStatement= ast.newExpressionStatement(newExpression);
rewrite.markAs... |
24,920 | Bug 24920 quick fix: fooled by additional dimentions in method declarations [quick fix] | public class DD { private int DD()[]{ }; } add return statement - it puts retrun 0 instead of return null | verified fixed | a209305 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-22T10:20:54Z | 2002-10-17T10:20:00Z | org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java | buf.append("public class E {\n");
buf.append(" public void foo() {\n");
buf.append(" return;\n");
buf.append(" return 1;\n");
buf.append(" return 1;\n");
buf.append(" return 1 + 2;\n");
buf.append(" }\n");
buf.append("}\n");
ICompilationUnit cu= pack1.createCompilation... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.