public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/38861]  New: gcjwebplugin.cc doesn't compile against latest xulrunner 1.9.1 sdk
@ 2009-01-15 20:29 jakub at gcc dot gnu dot org
  2009-01-15 22:58 ` [Bug libgcj/38861] " jakub at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-01-15 20:29 UTC (permalink / raw)
  To: java-prs

https://bugzilla.mozilla.org/show_bug.cgi?id=455458

xulrunner helpfully renamed npupp.h that gcjwebplugin.cc uses to npfunctions.h
and removed all the NewNPP_* macros (and jref is gone as well).

I'm trying now:
--- libjava/classpath/native/plugin/gcjwebplugin.cc.jj  2009-01-14
12:08:34.000000000 +0100
+++ libjava/classpath/native/plugin/gcjwebplugin.cc     2009-01-15
21:20:17.000000000 +0100
@@ -45,7 +45,7 @@ exception statement from your version. *

 // Netscape plugin API includes.
 #include <npapi.h>
-#include <npupp.h>
+#include <npfunctions.h>

 // GLib includes.
 #include <glib.h>
@@ -827,7 +827,7 @@ GCJ_URLNotify (NPP instance, const char*
   PLUGIN_DEBUG ("GCJ_URLNotify return");
 }

-jref
+void *
 GCJ_GetJavaClass (void)
 {
   PLUGIN_DEBUG ("GCJ_GetJavaClass");
@@ -1669,17 +1669,17 @@ NP_Initialize (NPNetscapeFuncs* browserT
   // Return to the browser the plugin functions that we implement.
   pluginTable->version = (NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR;
   pluginTable->size = sizeof (NPPluginFuncs);
-  pluginTable->newp = NewNPP_NewProc (GCJ_New);
-  pluginTable->destroy = NewNPP_DestroyProc (GCJ_Destroy);
-  pluginTable->setwindow = NewNPP_SetWindowProc (GCJ_SetWindow);
-  pluginTable->newstream = NewNPP_NewStreamProc (GCJ_NewStream);
-  pluginTable->destroystream = NewNPP_DestroyStreamProc (GCJ_DestroyStream);
-  pluginTable->asfile = NewNPP_StreamAsFileProc (GCJ_StreamAsFile);
-  pluginTable->writeready = NewNPP_WriteReadyProc (GCJ_WriteReady);
-  pluginTable->write = NewNPP_WriteProc (GCJ_Write);
-  pluginTable->print = NewNPP_PrintProc (GCJ_Print);
-  pluginTable->urlnotify = NewNPP_URLNotifyProc (GCJ_URLNotify);
-  pluginTable->getvalue = NewNPP_GetValueProc (GCJ_GetValue);
+  pluginTable->newp = (NPP_NewProc) (GCJ_New);
+  pluginTable->destroy = (NPP_DestroyProc) (GCJ_Destroy);
+  pluginTable->setwindow = (NPP_SetWindowProc) (GCJ_SetWindow);
+  pluginTable->newstream = (NPP_NewStreamProc) (GCJ_NewStream);
+  pluginTable->destroystream = (NPP_DestroyStreamProc) (GCJ_DestroyStream);
+  pluginTable->asfile = (NPP_StreamAsFileProc) (GCJ_StreamAsFile);
+  pluginTable->writeready = (NPP_WriteReadyProc) (GCJ_WriteReady);
+  pluginTable->write = (NPP_WriteProc) (GCJ_Write);
+  pluginTable->print = (NPP_PrintProc) (GCJ_Print);
+  pluginTable->urlnotify = (NPP_URLNotifyProc) (GCJ_URLNotify);
+  pluginTable->getvalue = (NPP_GetValueProc) (GCJ_GetValue);

   initialized = true;

just to see if it compiles.  I guess the removal of NewNPP_* macros shouldn't
hurt even with npupp.h and older xulrunner/firefox/mozilla etc., npupp.h vs
npfunctions.h probably needs configure to determine it and jref I have no idea
about why that function is defined at all, when it isn't referenced anywhere.

OT, the libjava/testsuite/libjava.lang/PR35020.java testcase doesn't compile
with ecj (tried eclipse-ecj 3.3.2 and 3.4.1):

gcj -C PR35020.java 
PR35020.java:20: warning: PrivilegedAction is a raw type. References to generic
type PrivilegedAction<T> should be parameterized
System.out.println((new java.security.PrivilegedAction() 
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PR35020.java:28: error: outer$inner.inner cannot be resolved to a type
System.out.println(outer$inner.inner.class.getSimpleName());
                   ^^^^^^^^^^^^^^^^^
2 problems (1 error, 1 warning)


-- 
           Summary: gcjwebplugin.cc doesn't compile against latest xulrunner
                    1.9.1 sdk
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38861


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libgcj/38861] gcjwebplugin.cc doesn't compile against latest xulrunner 1.9.1 sdk
  2009-01-15 20:29 [Bug libgcj/38861] New: gcjwebplugin.cc doesn't compile against latest xulrunner 1.9.1 sdk jakub at gcc dot gnu dot org
@ 2009-01-15 22:58 ` jakub at gcc dot gnu dot org
  2009-02-05 18:18 ` aph at gcc dot gnu dot org
  2009-02-05 23:09 ` gnu_andrew at member dot fsf dot org
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-01-15 22:58 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from jakub at gcc dot gnu dot org  2009-01-15 22:58 -------
That's not enough, as the typedef names also changed :(.
So, for npupp.h:
NewNPP_XXXProc (YYY)
or
(NPP_XXXUPP) (YYY)
works, for npfunctions.h:
(NPP_XXXProcPtr) (YYY)

And, jref isn't typedefed for new xulrunner (but the question stands, why is
that function defined at all when nothing references it).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38861


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libgcj/38861] gcjwebplugin.cc doesn't compile against latest xulrunner 1.9.1 sdk
  2009-01-15 20:29 [Bug libgcj/38861] New: gcjwebplugin.cc doesn't compile against latest xulrunner 1.9.1 sdk jakub at gcc dot gnu dot org
  2009-01-15 22:58 ` [Bug libgcj/38861] " jakub at gcc dot gnu dot org
@ 2009-02-05 18:18 ` aph at gcc dot gnu dot org
  2009-02-05 23:09 ` gnu_andrew at member dot fsf dot org
  2 siblings, 0 replies; 4+ messages in thread
From: aph at gcc dot gnu dot org @ 2009-02-05 18:18 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from aph at gcc dot gnu dot org  2009-02-05 18:18 -------
Created an attachment (id=17250)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17250&action=view)
This should do it


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38861


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libgcj/38861] gcjwebplugin.cc doesn't compile against latest xulrunner 1.9.1 sdk
  2009-01-15 20:29 [Bug libgcj/38861] New: gcjwebplugin.cc doesn't compile against latest xulrunner 1.9.1 sdk jakub at gcc dot gnu dot org
  2009-01-15 22:58 ` [Bug libgcj/38861] " jakub at gcc dot gnu dot org
  2009-02-05 18:18 ` aph at gcc dot gnu dot org
@ 2009-02-05 23:09 ` gnu_andrew at member dot fsf dot org
  2 siblings, 0 replies; 4+ messages in thread
From: gnu_andrew at member dot fsf dot org @ 2009-02-05 23:09 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from gnu_andrew at member dot fsf dot org  2009-02-05 23:09 -------
Committed to GNU Classpath for 0.98.

CVSROOT:        /sources/classpath
Module name:    classpath
Changes by:     Andrew John Hughes <gnu_andrew> 09/02/05 22:54:11

Modified files:
       .              : ChangeLog
       native/plugin  : gcjwebplugin.cc

Log message:
       Handle XULRunner 1.9.1.

       2009-02-05  Andrew Haley  <aph@redhat.com>

               PR libgcj/38861
               * native/plugin/gcjwebplugin.cc: Cope with the changed header
file
               format.  https://bugzilla.mozilla.org/show_bug.cgi?id=455458
               (GCJ_GetJavaClass): Likewise.
               (NP_Initialize): Likewise.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9756&r2=1.9757
http://cvs.savannah.gnu.org/viewcvs/classpath/native/plugin/gcjwebplugin.cc?cvsroot=classpath&r1=1.13&r2=1.14


-- 

gnu_andrew at member dot fsf dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-02-05 23:09:05
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38861


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-05 23:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-15 20:29 [Bug libgcj/38861] New: gcjwebplugin.cc doesn't compile against latest xulrunner 1.9.1 sdk jakub at gcc dot gnu dot org
2009-01-15 22:58 ` [Bug libgcj/38861] " jakub at gcc dot gnu dot org
2009-02-05 18:18 ` aph at gcc dot gnu dot org
2009-02-05 23:09 ` gnu_andrew at member dot fsf dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).