[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)[EMAIL PROTECTED]:~/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).
--
Summary: import java.util.Scanner cannot be resolved
Product: classpath
Version: 0.93
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30436
_______________________________________________
Bug-classpath mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-classpath