Commit 9179646e by Tom Tromey Committed by Tom Tromey

parse.y (method_header): Native method can't be strictfp.

	* parse.y (method_header): Native method can't be strictfp.
	No method can be transient or volatile.

From-SVN: r61559
parent 32ca7e0a
2003-01-21 Tom Tromey <tromey@redhat.com>
* parse.y (method_header): Native method can't be strictfp.
No method can be transient or volatile.
2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
Make-lang.in (jvspec.o-warn): Add -Wno-error.
......
......@@ -4503,6 +4503,18 @@ method_header (int flags, tree type, tree mdecl, tree throws)
IDENTIFIER_POINTER (EXPR_WFL_NODE (id)));
}
/* A native method can't be strictfp. */
if ((flags & ACC_NATIVE) && (flags & ACC_STRICT))
parse_error_context (id, "native method `%s' can't be strictfp",
IDENTIFIER_POINTER (EXPR_WFL_NODE (id)));
/* No such thing as a transient or volatile method. */
if ((flags & ACC_TRANSIENT))
parse_error_context (id, "method `%s' can't be transient",
IDENTIFIER_POINTER (EXPR_WFL_NODE (id)));
if ((flags & ACC_VOLATILE))
parse_error_context (id, "method `%s' can't be volatile",
IDENTIFIER_POINTER (EXPR_WFL_NODE (id)));
/* Things to be checked when declaring a constructor */
if (!type)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment