- 3,723,348 Users
- 2,244,533 Discussions
- 7,850,425 Comments
Forum Stats
Discussions
Categories
- 16 Data
- 362.2K Big Data Appliance
- 7 Data Science
- 2.1K Databases
- 608 General Database Discussions
- 3.7K Java and JavaScript in the Database
- 32 Multilingual Engine
- 497 MySQL Community Space
- 7 NoSQL Database
- 7.7K Oracle Database Express Edition (XE)
- 2.8K ORDS, SODA & JSON in the Database
- 422 SQLcl
- 61 SQL Developer Data Modeler
- 185.1K SQL & PL/SQL
- 21.1K SQL Developer
- 2.4K Development
- 3 Developer Projects
- 32 Programming Languages
- 135.6K Development Tools
- 13 DevOps
- 3K QA/Testing
- 334 Java
- 10 Java Learning Subscription
- 12 Database Connectivity
- 71 Java Community Process
- 2 Java 25
- 11 Java APIs
- 141.2K Java Development Tools
- 8 Java EE (Java Enterprise Edition)
- 153K Java Essentials
- 135 Java 8 Questions
- 86.2K Java Programming
- 270 Java Lambda MOOC
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 16 Java SE
- 13.8K Java Security
- 4 Java User Groups
- 22 JavaScript - Nashorn
- 18 Programs
- 147 LiveLabs
- 34 Workshops
- 10 Software
- 4 Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 4 Deutsche Oracle Community
- 16 Español
- 1.9K Japanese
- 3 Portuguese
Platform restriction: a parameter list's length cannot exceed 254

7e675caf-7289-4f20-83af-d221c3973ab3
Member Posts: 1
I get this error compiling some Scala code based on the Java 8 jdk. It looks like the JVM has a restriction of no more that 254 parameters on a method which is the root cause of this error message. I've not been able to find much on this error. Is the 254 parameter limit treated as an issue that is being fixed in a late Java release or has it already been addressed in a more recent version. I've got the 1.8.0_151 version installed.
Answers
-
I get this error compiling some Scala code based on the Java 8 jdk. It looks like the JVM has a restriction of no more that 254 parameters on a method which is the root cause of this error message. I've not been able to find much on this error. Is the 254 parameter limit treated as an issue that is being fixed in a late Java release or has it already been addressed in a more recent version. I've got the 1.8.0_151 version installed.
The obvious question is why you would even want that many parameters for a method.
It is NOT a bug - it is defined in the JVM spec to be a limit of 255.
https://docs.oracle.com/javase/specs/jvms/se10/jvms10.pdf
See page 166
(The parameters_count item is one byte because a method descriptor is limited to 255 parameters.)