summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/java-utils.eclass')
-rw-r--r--eclass/java-utils.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/java-utils.eclass b/eclass/java-utils.eclass
index d0797b3828a5..44aa2741bf88 100644
--- a/eclass/java-utils.eclass
+++ b/eclass/java-utils.eclass
@@ -57,7 +57,7 @@ java-utils_get-vm-vendor() {
}
java-utils_get-vm-version() {
- local version=$(java-config -f | sed -e "s/.*-\([0-9].*\)/\1/")
+ local version=$(java-config -f | sed -e "s/.*-\([0-9.]\+\).*/\1/")
echo ${version}
}