← Back to team overview

openjdk team mailing list archive

Bug#638805: openjdk-6-jdk: Compiler error message does not display entire file name and path

 

Hi Felipe,

Le lundi 22 août 2011 03:07:12, Felipe Ignacio Canas Sabat a écrit :
> Package: openjdk-6-jdk
> Version: 6b23~pre7-1
> Severity: minor
> Tags: wheezy
> 
> When there is a compilation error, the error message does not display the
> entire filepath and filename. It only displays the filename without the
> path. This causes problems using vim quickfix, because it tries to open a
> file in the current directory, not where the file really is.
> 
> For example, when there is a compilation error, the error message is like
> this,
> 
>     $ javac src/Test.java
>     Test.java:5: cannot find symbol
>     symbol  : variable a
>     location: class Test
>             System.out.println(a);
>                                ^
>     1 error
> 
> When it previously was like this,
> 
>     $ javac src/Test.java src/Test.java:5: cannot find symbol
>     symbol  : variable a
>     location: class Test
>             System.out.println(a);
>                                ^
>     1 error
> 
> This change was introduced somewhere between versions 6b18-1.8.7-2~squeeze1
> and 6b23~pre7-1

Yes, I can confirm this :

/usr/lib/jvm/java-6-openjdk/bin/java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.9) (6b18-1.8.9-0.1~squeeze1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

/usr/lib/jvm/java-6-openjdk/bin/javac src/Test.java
src/Test.java:4: cannot find symbol
symbol  : variable a
location: class Test
System.out.println(a);

----------------

/usr/lib/jvm/java-6-openjdk-amd64/bin/java -version
java version "1.6.0_23"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre10-1)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)

/usr/lib/jvm/java-6-openjdk-amd64/bin/javac src/Test.java
Test.java:4: cannot find symbol
symbol  : variable a
location: class Test
System.out.println(a);

Cheers,
-- 
Damien - Debian Developper
http://wiki.debian.org/DamienRaudeMorvan