The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=12878 ====================================================================== Reported By: Dan Kegel Assigned To: ====================================================================== Project: CMake Issue ID: 12878 Category: Modules Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2012-01-17 12:55 EST Last Modified: 2012-01-17 12:55 EST ====================================================================== Summary: find_package(Java) gives warning "regex not supported" again Description: Java.cmake has a hard-coded regex to parse java version strings, and it did not expect 'icedtea' to appear in them.
It did seem to expect 'oem' to appear in them, so blindly piggyback on that to add 'icedtea'. (Since a character class is used, it would also support -tie-me-a-code and other anagrams, but fixing that is best done by the author of that regex if desired.) See attached patch. Steps to Reproduce: Same as for bug 11676, but on latest ubuntu (12.04) with latest jdk (openjdk-7-jdk). Additional Information: Exact log: CMake Warning at /usr/local/cmake/share/cmake-2.8/Modules/FindJava.cmake:120 (message): regex not supported: java version "1.7.0_147-icedtea" OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-1ubuntu2) OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode). Please report ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-01-17 12:55 Dan Kegel New Issue ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers