Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 142347 Details for
Bug 133911
type.move() returns unclear exception "invalid destination"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Updated patch
patch_133911.txt (text/plain), 4.89 KB, created by
Jay Arthanareeswaran
on 2009-07-23 01:57:47 EDT
(
hide
)
Description:
Updated patch
Filename:
MIME Type:
Creator:
Jay Arthanareeswaran
Created:
2009-07-23 01:57:47 EDT
Size:
4.89 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/internal/core/CopyElementsOperation.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CopyElementsOperation.java,v >retrieving revision 1.38 >diff -u -r1.38 CopyElementsOperation.java >--- model/org/eclipse/jdt/internal/core/CopyElementsOperation.java 27 Jun 2008 16:03:50 -0000 1.38 >+++ model/org/eclipse/jdt/internal/core/CopyElementsOperation.java 23 Jul 2009 05:55:02 -0000 >@@ -242,7 +242,7 @@ > * <li>INVALID_DESTINATION - The destination parent specified for <code>element</code> > * is of an incompatible type. The destination for a package declaration or import declaration must > * be a compilation unit; the destination for a type must be a type or compilation >- * unit; the destinaion for any type member (other than a type) must be a type. When >+ * unit; the destination for any type member (other than a type) must be a type. When > * this error occurs, the element provided in the operation status is the <code>element</code>. > * <li>INVALID_NAME - the new name for <code>element</code> does not have valid syntax. > * In this case the element and name are provided in the status. >Index: model/org/eclipse/jdt/core/IJavaModelStatusConstants.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IJavaModelStatusConstants.java,v >retrieving revision 1.42 >diff -u -r1.42 IJavaModelStatusConstants.java >--- model/org/eclipse/jdt/core/IJavaModelStatusConstants.java 27 Jun 2008 16:04:01 -0000 1.42 >+++ model/org/eclipse/jdt/core/IJavaModelStatusConstants.java 23 Jul 2009 05:55:01 -0000 >@@ -132,7 +132,12 @@ > > /** > * Status constant indicating that a destination provided for a copy/move/rename operation >- * is invalid. >+ * is invalid. The destination for a package fragment must be a package fragment root; the >+ * destination for a compilation unit must be a package fragment; the destination for >+ * a package declaration or import declaration must be a compilation unit; the >+ * destination for a type must be a type or compilation unit; the destination for any >+ * type member (other than a type) must be a type. <br> >+ * > * The destination element can be retrieved using <code>getElements</code> on the status object. > */ > public static final int INVALID_DESTINATION = 978; >Index: model/org/eclipse/jdt/core/ISourceManipulation.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/ISourceManipulation.java,v >retrieving revision 1.12 >diff -u -r1.12 ISourceManipulation.java >--- model/org/eclipse/jdt/core/ISourceManipulation.java 27 Jun 2008 16:04:01 -0000 1.12 >+++ model/org/eclipse/jdt/core/ISourceManipulation.java 23 Jul 2009 05:55:02 -0000 >@@ -45,6 +45,7 @@ > * </ul> > * > * @exception IllegalArgumentException if container is <code>null</code> >+ * @see org.eclipse.jdt.core.IJavaModelStatusConstants#INVALID_DESTINATION > */ > void copy(IJavaElement container, IJavaElement sibling, String rename, boolean replace, IProgressMonitor monitor) throws JavaModelException; > /** >@@ -88,6 +89,7 @@ > * </ul> > * > * @exception IllegalArgumentException if container is <code>null</code> >+ * @see org.eclipse.jdt.core.IJavaModelStatusConstants#INVALID_DESTINATION > */ > void move(IJavaElement container, IJavaElement sibling, String rename, boolean replace, IProgressMonitor monitor) throws JavaModelException; > /** >Index: model/org/eclipse/jdt/core/IJavaModel.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IJavaModel.java,v >retrieving revision 1.28 >diff -u -r1.28 IJavaModel.java >--- model/org/eclipse/jdt/core/IJavaModel.java 27 Jun 2008 16:04:01 -0000 1.28 >+++ model/org/eclipse/jdt/core/IJavaModel.java 23 Jul 2009 05:55:01 -0000 >@@ -96,6 +96,7 @@ > * name and <code>replace</code> has been specified as <code>false</code> (<code>NAME_COLLISION</code>)</li> > * <li> A container or element is read-only (<code>READ_ONLY</code>) </li> > * </ul> >+ * @see org.eclipse.jdt.core.IJavaModelStatusConstants#INVALID_DESTINATION > */ > void copy(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, IProgressMonitor monitor) throws JavaModelException; > /** >@@ -201,6 +202,7 @@ > * </ul> > * > * @exception IllegalArgumentException any element or container is <code>null</code> >+ * @see org.eclipse.jdt.core.IJavaModelStatusConstants#INVALID_DESTINATION > */ > void move(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, IProgressMonitor monitor) throws JavaModelException; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
srikanth_sankaran
:
iplog+
srikanth_sankaran
:
review+
Actions:
View
|
Diff
Attachments on
bug 133911
:
142112
| 142347