[forwarded from http://bugs.debian.org/401948] The following program compiles fine with /usr/lib/jvm/java-1.5.0-sun/bin/javac --8<---------------cut here---------------start------------->8--- import java.util.Scanner; class TestScanner { public static void main(String[] args) { System.out.println ("hi"); } } --8<---------------cut here---------------end--------------->8--- But the eclipse compiler says, (debian-unstable)jtocancipa@golem:~/tmp$ /usr/bin/ecj-bootstrap TestScanner.java ---------- 1. ERROR in TestScanner.java (at line 1) import java.util.Scanner; ^^^^^^^^^^^^^^^^^ The import java.util.Scanner cannot be resolved ---------- The eclipse compiler should be fixed to compile the program (the ecj compiler here is configured to use the libgcj.jar).
Confirmed. No one has written this class yet.
twisti said one of his students has implemented this class and just needs paperwork
Yes, true. Mark already sent the paperwork to him and I hope he already filled it out and sent it back. I'll contact him and point him to this PR.
Hi, I've run into this problem too. Has the proposed implementation's paperwork gone through? Thanks, Ian
I don't know. Maybe Mark knows.
This is still pending resolution of the question whether the university has any claims on the work being contributed.
twisti has lost track of the code and student...
We're currently trying to get this sorted with GNU legal and get contact to the student again.
Any progress on this?
Submitter is currently mia, sorry.
I have completed the java.util.Sanner but I still wasn't able to commit this code to the "magnificant" GNU CVS repository with Eclipse.. i have tried it using gentoo and Windows xp.. I already uploaded a freshly generated public key yesterday and today again (this time generated with eclipse).. So if someone would be as kind as to tell me how to commit this class it could even be finished today.. I have found some tutorials about it, and following them I have entered the private key file in the Eclipse settings but the "magnificant" GNU server doesn't even ask me for the passphrase.. "http://www.cise.ufl.edu/~mwhitloc/sf_cvs_howto.html" I used it to try to check out the classpath.. In the eclipse check out Form I have filled in the following: Host : cvs.savannah.gnu.org Repository path: /sources/classpath User : <my Savannah account name> Password : [empty] Connection type : ext And then when I click next, there should come a promt for the passphrase of the private key.. which doesn't come.. When I tried to use cvs from shell it only said to me "Premission denied (publickey)."
(In reply to comment #11) > I have completed the java.util.Sanner but I still wasn't able to commit this > code to the "magnificant" GNU CVS repository with Eclipse.. i have tried it > using gentoo and Windows xp.. Please post your patch first on classpath-patches@gnu.org Also please read http://www.gnu.org/software/classpath/docs/cp-hacking.html#SEC3 and http://developer.classpath.org/mediation/ClasspathFirstSteps
Mark, I take it Laszlo completed the assignment then? I don't recall seeing a mail, but may have missed it. Laszlo, you need to first post the patch to classpath-patches@gnu.org with the subject 'RFC: java.util.Scanner' and wait for feedback before committing. As Mark says, please read the guides for GNU Classpath work. If there are problems committing, this can be tracked down or another developer can always commit the work for you assuming assignment is in place.
Legalities are now cleared up. However, on refactoring and reformatting this code, I discovered that it has never been compiled against GNU Classpath. Before we can commit this, we need support for region-based regular expression matching.
Let's get this in for 0.98.
CVSROOT: /sources/classpath Module name: classpath Changes by: Andrew John Hughes <gnu_andrew> 08/08/16 23:34:21 Modified files: . : AUTHORS ChangeLog Added files: java/util : Scanner.java Log message: Add initial implementation of java.util.Scanner. 2008-08-17 Andrew John Hughes <gnu_andrew@member.fsf.org> * AUTHORS: Added Laszlo. 2008-04-20 Andrew John Hughes <gnu_andrew@member.fsf.org> PR classpath/30436: * java/util/Scanner.java: Fix package to be java.util and correct indentation. 2007-07-25 Laszlo Andras Hernadi <e0327023@student.tuwien.ac.at> PR classpath/30436: * java/util/Scanner.java: Initial implementation. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/AUTHORS?cvsroot=classpath&r1=1.44&r2=1.45 http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9691&r2=1.9692 http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/Scanner.java?cvsroot=classpath&rev=1.1