aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/beans/PropertyEditorManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/beans/PropertyEditorManager.java')
-rw-r--r--libjava/java/beans/PropertyEditorManager.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/libjava/java/beans/PropertyEditorManager.java b/libjava/java/beans/PropertyEditorManager.java
index cb03563..aa0e177 100644
--- a/libjava/java/beans/PropertyEditorManager.java
+++ b/libjava/java/beans/PropertyEditorManager.java
@@ -140,9 +140,13 @@ public class PropertyEditorManager
return (PropertyEditor)found.newInstance();
}
+ ClassLoader contextClassLoader
+ = Thread.currentThread().getContextClassLoader();
+
try
{
- found = Class.forName(editedClass.getName()+"Editor");
+ found = Class.forName(editedClass.getName()+"Editor", true,
+ contextClassLoader);
registerEditor(editedClass,found);
return (PropertyEditor)found.newInstance();
}
@@ -150,14 +154,18 @@ public class PropertyEditorManager
{
}
- String appendName = "." + ClassHelper.getTruncatedClassName(editedClass) + "Editor";
+ String appendName
+ = "."
+ + ClassHelper.getTruncatedClassName(editedClass)
+ + "Editor";
synchronized(editorSearchPath)
{
for(int i=0;i<editorSearchPath.length;i++)
{
try
{
- found = Class.forName(editorSearchPath[i] + appendName);
+ found = Class.forName(editorSearchPath[i] + appendName,
+ true, contextClassLoader);
registerEditor(editedClass,found);
return (PropertyEditor)found.newInstance();
}