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 10568 Details for
Bug 61996
bad idea to subclass Error for ordinary exceptions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch to o.e.jdt.ui to convert Errors to RuntimeExceptions
jdt-ui-patch-20040512.txt (text/plain), 2.72 KB, created by
Jim des Rivieres
on 2004-05-12 16:19:40 EDT
(
hide
)
Description:
patch to o.e.jdt.ui to convert Errors to RuntimeExceptions
Filename:
MIME Type:
Creator:
Jim des Rivieres
Created:
2004-05-12 16:19:40 EDT
Size:
2.72 KB
patch
obsolete
>Index: core extension/org/eclipse/jdt/internal/corext/util/AllTypesCache.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/AllTypesCache.java,v >retrieving revision 1.38 >diff -u -r1.38 AllTypesCache.java >--- core extension/org/eclipse/jdt/internal/corext/util/AllTypesCache.java 6 May 2004 13:07:52 -0000 1.38 >+++ core extension/org/eclipse/jdt/internal/corext/util/AllTypesCache.java 12 May 2004 20:01:27 -0000 >@@ -166,7 +166,7 @@ > > final ArrayList typesFound= new ArrayList(fSizeHint); > >- class RequestorAbort extends Error { } >+ class RequestorAbort extends RuntimeException { } > > ITypeNameRequestor requestor= new TypeInfoRequestor(typesFound) { > protected boolean inScope(char[] packageName) { >@@ -464,7 +464,7 @@ > * Checks if the search index is up to date. > */ > public static boolean isIndexUpToDate() { >- class TypeFoundException extends Error { >+ class TypeFoundException extends RuntimeException { > } > ITypeNameRequestor requestor= new ITypeNameRequestor() { > public void acceptClass(char[] packageName, char[] simpleTypeName, char[][] enclosingTypeNames, String path) { >Index: ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java,v >retrieving revision 1.36 >diff -u -r1.36 JavaStructureCreator.java >--- ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java 6 Apr 2004 17:20:20 -0000 1.36 >+++ ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java 12 May 2004 20:01:29 -0000 >@@ -35,7 +35,7 @@ > /** > * Used to bail out from ProblemFactory. > */ >- private static class ParseError extends Error { >+ private static class ParseError extends RuntimeException { > } > > /** >Index: ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java,v >retrieving revision 1.40 >diff -u -r1.40 OrganizeImportsAction.java >--- ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java 5 May 2004 14:39:08 -0000 1.40 >+++ ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java 12 May 2004 20:01:35 -0000 >@@ -311,7 +311,7 @@ > > } > >- static final class OrganizeImportError extends Error { >+ static final class OrganizeImportError extends RuntimeException { > } > > private void doRunOnMultiple(ICompilationUnit[] cus, MultiStatus status, IProgressMonitor monitor) throws OperationCanceledException {
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
Actions:
View
|
Diff
Attachments on
bug 61996
: 10568