Java Source Compiled Using HashMap errors with ORA-29536 (Doc ID 1259594.1)

Last updated on JULY 17, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.1 and later
Information in this document applies to any platform.

*** Checked for relevance on 17-Jul-2017 ***

Symptoms

Java source is failing to compile in 10.2 database raising errors when loaded using "create or replace java source" on the line:

HashMap<String, Object> params = new HashMap<String, Object>();


with errors:

ERROR at line 1:
ORA-29536: badly formed source: Encountered "<" at line 46, column 24.
Was expecting one of:
";" ...
"++" ...
"--" ...
"." ...
"[" ...
"(" ...
":" ...
<IDENTIFIER> ...
"=" ...
"*=" ...
"/=" ...
"%=" ...
"+=" ...
"-=" ...
"<<=" ...
">>=" ...
">>>=" ...
"&=" ...
"^=" ...
"|=" ...

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