My Oracle Support Banner

JDeveloper Removes Repeated Argument Values When Running a Java Class (Doc ID 2653840.1)

Last updated on JUNE 28, 2021

Applies to:

Oracle JDeveloper - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

On JDeveloper 12.2.1.4.0, create a simple Java program that receives arguments. To test the program, set the arguments in the project properties - run/debug config. Add two arguments with the same value. JDev parses and eliminates any duplicates prior to sending them to Java for execution. it doesn't matter what the list of arguments values are or their order. Any duplicates are eliminated and only unique values for arguments are feed to Java. This behavior can't be correct. The logic must be wrong by eliminating duplicates in the list or args!

The issue can be reproduced at will with the following steps:
1. Create a new generic project
2. Create a Java class with a main method. In this example, the class simply writes the arguments it receives:

Due to this issue, the class can't be properly tested.

Cause

To view full details, 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 a vibrant support community of peers and Oracle experts.