RT-40000 refactored some classes to avoid split packages, and also moved com/sun/webkit/dom/JSObject.java from the graphics module (where it doesn't belong) to the web module. This works fine when not building webkit (which is the default), but causes the build to fail when webkit is built with the following error:
javah -J-Djava.ext.dirs= -d rt/modules/web/build/generated-src/headers -classpath rt/modules/web/build/classes/main:rt/modules/graphics/build/classes/main java.lang.Character java.net.IDN com.sun.webkit.ContextMenu com.sun.webkit.ContextMenuItem com.sun.webkit.CursorManager com.sun.webkit.PageCache com.sun.webkit.PopupMenu com.sun.webkit.SharedBuffer com.sun.webkit.WatchdogTimer com.sun.webkit.WebPage com.sun.webkit.LoadListenerClient com.sun.webkit.event.WCFocusEvent com.sun.webkit.event.WCKeyEvent com.sun.webkit.event.WCMouseEvent com.sun.webkit.event.WCMouseWheelEvent com.sun.webkit.graphics.GraphicsDecoder com.sun.webkit.graphics.RenderMediaControls com.sun.webkit.graphics.RenderTheme com.sun.webkit.graphics.ScrollBarTheme com.sun.webkit.graphics.WCMediaPlayer com.sun.webkit.graphics.WCGraphicsManager com.sun.webkit.graphics.WCRenderQueue com.sun.webkit.graphics.WCPath com.sun.webkit.graphics.WCPathIterator com.sun.webkit.Timer com.sun.webkit.WCFrameView com.sun.webkit.WCPasteboard com.sun.webkit.WCPluginWidget com.sun.webkit.dom.JSObject com.sun.webkit.network.SocketStreamHandle com.sun.webkit.network.URLLoader com.sun.webkit.text.TextBreakIterator com.sun.webkit.text.TextNormalizer
Successfully started process 'command 'javah''
Error: Could not find class file for 'com.sun.webkit.dom.JSObject'.
Process 'command 'javah'' finished with exit value 1 (state: FAILED)
:web:generateHeaders FAILED
:web:generateHeaders (Thread[main,5,main]) completed. Took 0.52 secs.