javac exits with error "too many parameters" (Doc ID 1328595.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Java SE JDK and JRE - Version 5.0 to 8
Information in this document applies to any platform.

Symptoms

The Java language compiler 'javac' fails to compile Java source code and exits with error message "too many parameters". Example:

$ javac ManyArgs.java
ManyArgs.java:3: too many parameters
    public void manyArgs(long x0, long x1, long x2, long x3, long x4, long x5, long x6, long x7, long x8, long x9,
                ^
1 error


Changes

You have created new source code or changed source code.
For an example see ManyArgs.java

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms