Summary: | dev-java/jnr-netdb-1.0 uses Java 6 API String.isEmpty | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin von Gagern <Martin.vGagern> |
Component: | [OLD] Java | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Java 1.5 compat |
Description
Martin von Gagern
2010-06-22 15:36:26 UTC
Created attachment 236257 [details, diff]
Java 1.5 compat
This patch uses String.length() == 0 instead of String.isEmpty(), thereby restoring compatibility with Java 1.5 API. Works for me.
The patch also changes a obviously broken "array.length < 0" check, as an array never has negative length, and as accessing the first element of a length-zero array is an error. Therefore I assume that "line.length <= 0" is intended.
Haven't found an upstream bug tracker, but will write an email to the upstream developer, Wayne Meissner, pointing him to this bug report here.
Upstream fixed this in their 1.0.1 tag. Be careful when bumping the ebuild, as it currently has 1.0 hardcoded into the SRC_URI, instead of using ${PV}. Bumped to 1.0.1. |