This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

java.beans.*


I don't know what the current state of the cvs is, but in my snapshot
the code from the java.beans.PropertyEditorManager.java is equal to some
where I got the code from. I believe it's another problem with gcj with
try{}catch{} clauses, it's the only source file from java.beans.* that
doesn't do the transition java->class->obj here's the diff

That's about it for now I guess. Hopefully I will have my custom linux
box running within a week and have tomcat 4.1 compiled native. Does
anybody now what to do with SSL when using tomcat? Is it possible to use
openssl instead for encryption?

thanks in advance. off to the agency for the unemployed :D
109a110,113
> 		Class found = null;
> 		PropertyEditor ed = null;	
> 		String appendName = null;
> 		String[] clone = null;
111,120c115
< 
< 		Class found = (Class)editors.get(editedClass);
< 		if(found != null) {
< 			return (PropertyEditor)found.newInstance();
< 		}
< 
< 		try {
< 			found = Class.forName(editedClass.getName()+"Editor");
< 			registerEditor(editedClass,found);
< 			return (PropertyEditor)found.newInstance();
---
> 			found = (Class)editors.get(editedClass);
123,126c118,119
< 
< 		String appendName = "." + ClassHelper.getTruncatedClassName(editedClass) + "Editor";
< 		synchronized(editorSearchPath) {
< 			for(int i=0;i<editorSearchPath.length;i++) {
---
> 		
> 		if (found==null) {
128c121
< 					found = Class.forName(editorSearchPath[i] + appendName);
---
> 					found = Class.forName(editedClass.getName()+"Editor");
130,131c123
< 					return (PropertyEditor)found.newInstance();
< 				} catch(ClassNotFoundException E) {
---
> 				} catch (Exception noClassFound) {
132a125,136
> 		}
> 		if (found==null) {
> 			appendName = 
> 							"." + ClassHelper.getTruncatedClassName(editedClass) + "Editor";
> 			synchronized(editorSearchPath) {
> 							clone = (String[])editorSearchPath.clone();
> 			}
> 			for(int i=0;i<clone.length;i++) {
> 				try {
> 					found = Class.forName(clone[i] + appendName);
> 					registerEditor(editedClass,found);
> 				} catch(ClassNotFoundException notFound) {}
135,137c139,145
< 
< 		} catch(InstantiationException E) {
< 		} catch(IllegalAccessException E) {
---
> 		
> 		try {
> 				ed = (PropertyEditor)found.newInstance();
> 		} catch (IllegalAccessException noPrivilege) {
> 		} catch (InstantiationException failedInitialize) {
> 		} finally {
> 				return ed;
139d146
< 		return null;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]