Project

General

Profile

Bug #4620

Direct Java conversion fails for arrays of objects

Added by Hynek Cihlar about 4 years ago. Updated about 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:

JavaClassDefinition.java.diff Magnifier (461 Bytes) Hynek Cihlar, 04/17/2020 06:31 PM


Related issues

Related to Base Language - Feature #3867: direct java class access from 4GL code Closed

History

#1 Updated by Hynek Cihlar about 4 years ago

The following piece of code fails to convert.

using java.awt.* from java.
using java.lang.* from java.def var gEnv as GraphicsEnvironment.
def var availableFonts as String extent.
gEnv = GraphicsEnvironment:getLocalGraphicsEnvironment().
availableFonts = gEnv:getAvailableFontFamilyNames().

The problematic part is the String array.

#2 Updated by Hynek Cihlar about 4 years ago

The attached diff resolves the conversion error, but the resulting Java code does not compile. The issue will need more investigation.

#3 Updated by Greg Shah about 4 years ago

  • Related to Feature #3867: direct java class access from 4GL code added

Also available in: Atom PDF