java.net.URI implementation

2003-02-10 Thread Giannis Georgalis
Hello, After a discussion I had with Michael Koch, I decided to implement the java.net.URI class. I found in the classpath mail archives a patch submited by Mr. Topic (I think) in which he implemented part of the URI class using: /** * Regular expression for parsing URIs. * * Taken

Re: java.net.URI implementation

2003-02-10 Thread Giannis Georgalis
Brian Jones [EMAIL PROTECTED] writes: Giannis Georgalis [EMAIL PROTECTED] writes: Please, tell me your thoughts and suggestions about this matter. ANTLR is usually the better choice for parsing as far as I know, but I'm not really that knowledgable on grammars and parsing anyway. It's

Re: java.net.URI implementation

2003-02-10 Thread Giannis Georgalis
Per Bothner [EMAIL PROTECTED] writes: I think space is *much* more important than speed when it comes to parsing URIs. How big is the generated scanner? The generated scanner is not big (about 300 loc). I'm also skeptical as to how JFlex is faster. The only thing I can think of is that a

Re: java.net.URI implementation

2003-02-10 Thread Giannis Georgalis
Per Bothner [EMAIL PROTECTED] writes: But you still have to allocate the parser object(s), which a hand-written parser doesn't have to. And object allocation is relatively expensive, in the context of parsing a URI. Yes, you are right. So what you are suggesting is a hand-written parser,

Re: java.net.URI implementation

2003-02-10 Thread Giannis Georgalis
Dalibor Topic [EMAIL PROTECTED] writes: I doubt adding basic IPv6 parsing to the regexp used should pose significant problems. For example the uri : http://1333.2123.232323.0.9.9~84.1; is not valid, but can be parsed from this regexp. You are mixing things up here. That's a valid

Re: org.omg

2002-10-06 Thread Giannis Georgalis
Brian Jones [EMAIL PROTECTED] writes: This is essentially the same as the license on the code in w_log.c for example. Should we go ahead and import the appropriate pieces of code from OMG? Shouldn't you ask rms for this matter? -- Object-oriented programming is an exceptionally bad idea

Re: [Classpath] Re: code indentation

2002-09-29 Thread Giannis Georgalis
C. Scott Ananian [EMAIL PROTECTED] writes: On 28 Sep 2002, Nic Ferrier wrote: You're changes are unlikely to be accepted if you mix style and logical changes. But, luckily, 'cvs diff -U1' can come to the rescue. Do: Thank you very much Scott. The guide was *very* useful!!! Actually

code indentation

2002-09-27 Thread Giannis Georgalis
Thank you all very much for your accurate answers on my serialVersionUID question. YASQ (Yet Another Short Question) about code indentation; I've read some old archives on the list about the indentation of the code, so I came up with the following java-mode-hook in my .emacs: (add-hook

Re: [Classpath] Re: code indentation

2002-09-27 Thread Giannis Georgalis
Nic Ferrier [EMAIL PROTECTED] writes: Then you can make your real changes against the re-styled version. This helps when doing diffs. If real changes are mixed with style changes it can be impossible to see what actually changed. Oops ... too late :(

Re: serialVersionUID

2002-09-26 Thread Giannis Georgalis
Eric Blake [EMAIL PROTECTED] writes: It is necessary for serialization, although it is usually a private field. ALL classes in classpath which implement java.io.Serializable should declare this field, and it should match the results of running Sun's serialver tool on that class; otherwise,

jdiff.sh 0.0.1 final

2002-09-22 Thread Giannis Georgalis
This is the last mail I send to the list about jdiff.sh. You can always check for the latest version at http://majestix.ucnet.uoc.gr/~jgeorgal/pub/jdiff.sh I'll maintain from now on a Changelog file at http://majestix.ucnet.uoc.gr/~jgeorgal/pub/Changelog for anyone who is interested. The new

jdiff.sh (BETA)

2002-09-21 Thread Giannis Georgalis
Hello again, After some useful comments and a bug report by Michael Koch, jdiff.sh 0.0.1 (BETA) now works in the following ways: * Handles interfaces correctly ... Give me some help here; When you have a public interface do all the methods-fields default to public? I always explicitly

serialVersionUID

2002-09-21 Thread Giannis Georgalis
Hello again from the primary spammer of the GNU classpath list :) I have one question. Please forgive my ignorance, as I'm new to the classpath project. What is serialVersionUID?, what is it used for? (instanceof operator?), where can I find it's value for a specific class? and should *all*

Re: jdiff.sh (BETA)

2002-09-21 Thread Giannis Georgalis
Eric Blake [EMAIL PROTECTED] writes: Unchecked exceptions do not need to be reported. There are several places where Classpath purposefully omits mentioning unchecked exceptions in the throws clause, because it is just a waste of .class file size. For example, these two declarations are

jdiff.sh

2002-09-19 Thread Giannis Georgalis
Hello, I've written a small shell script that compares the methods, constructors and attributes (public,protected) of the Java official API (from the official api specification in html format) to the GNU classpath corespondent classes (from the source code of GCP). The script doesn't

Re: trouble getting kissme to work with gcp

2002-08-30 Thread Giannis Georgalis
Stephen Crawley [EMAIL PROTECTED] writes: Hello Stephen, Giannis, First, this email would be better directed to the kissme mailing list: [EMAIL PROTECTED] I've cc'ed that list. If you reply to this email, please remove [EMAIL PROTECTED] from the cc: list. I sent it to the