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)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: beard, Assigned: norrisboyd)
Details
Attachments
(1 file)
604 bytes,
patch
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
I've had the same problem with the JDK 1.1.8 javac on Linux!
Comment 3•24 years ago
|
||
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
Comment 4•24 years ago
|
||
The patch allows me to compile Rhino using JDK 1.1.8 on Linux.
Assignee | ||
Comment 5•24 years ago
|
||
The patch has apparently already been applied. Marking fixed.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•