Closed Bug 40937 Opened 25 years ago Closed 25 years ago

ProxyJNI.cpp does not build under Linux/ia64

Categories

(Core Graveyard :: Java: OJI, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 37364

People

(Reporter: jim_nance, Assigned: drapeau)

Details

Attachments

(1 file)

The compiler on Linux/ia64 is complaining about code like this: jargs[i].z = va_arg(args, jboolean); Apparently a jboolean is shorter than an int, and it will be promoted to an int when passed to a function as one of the ... arguments. Therefor the compiler wants you to ask for the promoted type when you use the va_arg macro. I have attached a patch that fixes this and allows the file to compile. It also fixes some warnings about using NULL for non-pointer values.
*** This bug has been marked as a duplicate of 37364 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Verified dupe.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: