This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: question about reflection
- To: java-discuss at sourceware dot cygnus dot com
- Subject: Re: question about reflection
- From: Per Bothner <per at bothner dot com>
- Date: 25 Nov 1999 09:57:11 -0800
- References: <199911251725.KAA16053@faith.cs.utah.edu>
Godmar Back <gback@cs.utah.edu> writes:
> It would only work if keep-inline-functions somehow set
> optimize to and flag_inline_functions to zero.
I don't think that would be a good idea.
But how about changing the code to:
/* Build Method array. */
for (method = TYPE_METHODS (CLASS_TO_HANDLE_TYPE (type));
method != NULL_TREE; method = TREE_CHAIN (method))
{
tree init;
if (METHOD_PRIVATE (method)
+ && ! flag_keep_inline_functions
&& (flag_inline_functions || optimize))
continue;
init = make_method_value (method);
method_count++;
methods = tree_cons (NULL_TREE, init, methods);
}
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/