Bug#653731: java-propose-classpath wrongly ignores imports starting with "javax"

Jan Janak jan at ryngle.com
Fri Dec 30 15:20:48 UTC 2011


Package: java-propose-classpath
Version: 0.37
Severity: important
Tags: patch

The script java-propose-classpath attempts to ignore imports starting with
"java" because those are provided by the Java runtime library provided by the
JVM. The argument to grep -v to achieve this is incorrect because it will also
ignore imports starting with "javax". Those are, however, often provided by
separate JARs installed in /usr/share/java and thus such imports should be
reported by the script.

To fix this, change:
  grep -v ^java
to
  grep -v ^java[/\.]

-- System Information:
Debian Release: 6.0.3
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'proposed-updates'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages java-propose-classpath depends on:
ii  fastjar                       2:0.98-3   Jar creation utility
ii  gcj-jdk                       4:4.4.5-1  gcj and classpath development tool
ii  javahelper                    0.37       Helper scripts for packaging Java 

java-propose-classpath recommends no packages.

java-propose-classpath suggests no packages.

-- no debconf information





More information about the pkg-java-maintainers mailing list