Closed Bug 77671 Opened 24 years ago Closed 24 years ago

IdFunction.java won't compile with JDK 1.1.8 javac

Categories

(Rhino Graveyard :: Core, defect)

PowerPC
Mac System 9.x
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: beard, Assigned: norrisboyd)

Details

Attachments

(1 file)

The javac compiler that comes with MRJ 2.2.4 won't compile IdFunction.java. For some reason, the assignments to the final members, master and methodId in the IdFunction constructor are flagged as errors.
I've had the same problem with the JDK 1.1.8 javac on Linux!
Here are the errors I kept getting on Linux: javascript/../classfile/ByteCode.java org/mozilla/javascript/../classfile/ClassFileWriter.java ./org/mozilla/javascript/IdFunction.java:65: Blank final variable 'master' may not have been initialized. It must be assigned a value in an initializer, or in every constructor. public IdFunction(Master master, String name, int id) { ^ ./org/mozilla/javascript/IdFunction.java:65: Blank final variable 'methodName' may not have been initialized. It must be assigned a value in an initializer, or in every constructor. public IdFunction(Master master, String name, int id) { ^ ./org/mozilla/javascript/IdFunction.java:65: Blank final variable 'methodId' may not have been initialized. It must be assigned a value in an initializer, or in every constructor. public IdFunction(Master master, String name, int id) { ^ 3 errors make[1]: *** [classes/org/mozilla/javascript/DeepBytecodeHook.class] Error 1 make[1]: Leaving directory `/data/phil/JS_TRUNK/mozilla/js/rhino' make: *** [js.jar] Error 2
The patch allows me to compile Rhino using JDK 1.1.8 on Linux.
The patch has apparently already been applied. Marking fixed.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Marking Verified -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: