[865] in java-interest
getting static members in native methods
daemon@ATHENA.MIT.EDU (Louis Theran)
Sat Aug 12 01:06:46 1995
From: Louis Theran <louis@osf.org>
Date: Fri, 11 Aug 1995 19:02:03 -0400
To: java-interest@java.sun.com
Is it possible to get static members from inside a native method?
Using the normal macros for this like unhand don't seem to
work, and the struct shown in the header files that I got from
javah don't include static members (data members, methods are there).
Is this just something that can't be done, or is there just a
different syntax.
The reason why I am asking this is that I haven't been able to write a
java program that has a main() method (which javac says must be
static) where any other members of the class (including methods) that
get used inside main can not be static and still have the compiler
not barf. Am I doing something wrong here? I would appreciate to
find out what.
Thanks,
Louis Theran
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com