JRockit 1.4.2 - javac fails when using <outerClass>$<innerClass> format in java code (Doc ID 774955.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle JRockit / JRockit / 1.4.2
Information in this document applies to any platform

Goal

DESCRIPTION:

The following code in a file named Hello.java fails to get compiled when using JRockit 1.4.2. It works fine with
JRockit 1.4.1 and earlier versions.

package com.support;
public class Hello {
	class Inner {public void helloInner(){}	}
}
class UseHello {
	public void myMethod(com.support.Hello$Inner hi){
	}
}

CONFIGURATION:
JRockit 1.4.2
Windows 2000

Solution

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