[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#401948: ecj-bootstrap: The import java.util.Scanner cannot be resolved



reassign 401948 gcj-4.4
close 401948 4.4.0-1
thanks


On Thu, Dec 07, 2006 at 01:21:00AM +0100, Jhair Tocancipa Triana wrote:
> Package: ecj-bootstrap
> Version: 3.2.1-3
> Severity: normal
> 
> 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.

This is not a bug in the Eclipse compiler itself but in the class library
it uses. When GCJ got updated to version 4.4.0 the Scanner class was
introduced and it now compiles.


Cheers,
Michael



Reply to: