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 171981 Details for
Bug 316961
Exception handling may fail in AdapterFactoryRegistry
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Fix
clipboard.txt (text/plain), 2.28 KB, created by
Rüdiger Herrmann
on 2010-06-15 15:27:27 EDT
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Rüdiger Herrmann
Created:
2010-06-15 15:27:27 EDT
Size:
2.28 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.rwt >Index: src/org/eclipse/rwt/internal/AdapterFactoryRegistry.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/AdapterFactoryRegistry.java,v >retrieving revision 1.2 >diff -u -r1.2 AdapterFactoryRegistry.java >--- src/org/eclipse/rwt/internal/AdapterFactoryRegistry.java 12 Jun 2008 13:12:19 -0000 1.2 >+++ src/org/eclipse/rwt/internal/AdapterFactoryRegistry.java 15 Jun 2010 19:26:59 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2002, 2007 Innoopract Informationssysteme GmbH. >+ * Copyright (c) 2002, 2010 Innoopract Informationssysteme GmbH. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -7,6 +7,7 @@ > * > * Contributors: > * Innoopract Informationssysteme GmbH - initial API and implementation >+ * Rüdiger Herrmann - ongoing development > ******************************************************************************/ > > package org.eclipse.rwt.internal; >@@ -15,11 +16,9 @@ > import java.util.ArrayList; > import java.util.List; > >-import javax.servlet.http.HttpServletRequest; >- > import org.eclipse.rwt.Adaptable; > import org.eclipse.rwt.AdapterFactory; >-import org.eclipse.rwt.internal.service.ContextProvider; >+import org.eclipse.rwt.internal.service.ServletLog; > import org.eclipse.rwt.internal.util.ParamCheck; > > >@@ -86,11 +85,10 @@ > AdapterFactory factory = ( AdapterFactory )clazz.newInstance(); > AdapterManager manager = AdapterManagerImpl.getInstance(); > manager.registerAdapters( factory, entries[ i ].adaptableClass ); >- } catch( final Throwable thr ) { >+ } catch( Throwable thr ) { > String text = "Could not create an instance of ''{0}''."; > String msg = MessageFormat.format( text, new Object[] { clazz } ); >- HttpServletRequest request = ContextProvider.getRequest(); >- request.getSession().getServletContext().log( msg, thr ); >+ ServletLog.log( msg, thr ); > } > } > }
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 316961
: 171981