JDK-8166217 : Fix webkit native to work on Ubuntu 16.04
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_ubuntu
  • CPU: generic
  • Submitted: 2016-09-16
  • Updated: 2016-12-16
  • Resolved: 2016-12-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Related Reports
Duplicate :  
I got an error that isnan was not defined. A simple qualifier std::isnan got me past the error. I have not tested this on other systems.

ddhill@ddhill-pad:~/sb/9/refbld/rt$ hg diff
diff --git a/modules/javafx.web/src/main/native/Source/JavaScriptCore/runtime/Options.cpp b/modules/javafx.web/src/main/native/Source/JavaScriptCore/runtime/Options.cpp
--- a/modules/javafx.web/src/main/native/Source/JavaScriptCore/runtime/Options.cpp
+++ b/modules/javafx.web/src/main/native/Source/JavaScriptCore/runtime/Options.cpp
@@ -506,7 +506,7 @@
     case Options::Type::unsignedType:
         return m_entry.unsignedVal == other.m_entry.unsignedVal;
     case Options::Type::doubleType:
-        return (m_entry.doubleVal == other.m_entry.doubleVal) || (isnan(m_entry.doubleVal) && isnan(other.m_entry.doubleVal));
+        return (m_entry.doubleVal == other.m_entry.doubleVal) || (std::isnan(m_entry.doubleVal) && std::isnan(other.m_entry.doubleVal));
     case Options::Type::int32Type:
         return m_entry.int32Val == other.m_entry.int32Val;
     case Options::Type::optionRangeType:
This seems problematic on Mac /Users/ddhill/sb/9/jigbld/rt/modules/javafx.web/src/main/native/Source/JavaScriptCore/runtime/Options.cpp:509:105: error: expected unqualified-id return (m_entry.doubleVal == other.m_entry.doubleVal) || (std::isnan(m_entry.doubleVal) && std::isnan(other.m_entry.doubleVal));