Issue 59368 - enum is a reserved word in Java JDK 1.5 (build fails on Java 5)
Summary: enum is a reserved word in Java JDK 1.5 (build fails on Java 5)
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 680m142
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0.3
Assignee: caolanm
QA Contact: issues@framework
URL:
Keywords:
: 57544 59797 62918 63371 (view as issue list)
Depends on:
Blocks: 65112
  Show dependency tree
 
Reported: 2005-12-14 21:27 UTC by Dwayne Bailey
Modified: 2006-12-26 04:25 UTC (History)
4 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Rename all enum variables to stop JDK 1.5 errors (2.10 KB, patch)
2005-12-14 21:28 UTC, Dwayne Bailey
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Dwayne Bailey 2005-12-14 21:27:20 UTC
When compiling OOo against JDK 1.5 the compile fails with an error because enum
has been made a reserved word in 1.5.

All the occurances occur in the xmerge module.

The attached patch simply replaces all uses on enum as a variable with
enumerate, a better word could probably be chosen depending on the context but I
think this is what the programmers intended.
Comment 1 Dwayne Bailey 2005-12-14 21:28:45 UTC
Created attachment 32408 [details]
Rename all enum variables to stop JDK 1.5 errors
Comment 2 thorsten.martens 2005-12-16 13:32:01 UTC
TM->MH:please have a look.
Comment 3 thorsten.martens 2005-12-16 13:48:47 UTC
TM->MIB: As ST told me, you might have a look, because MH isn´t on duty today
Comment 4 michael.brauer 2005-12-19 11:44:09 UTC
Svante, can you please care about this patch. Actually Lars' can remember to
have resolved the same or a similar issue already, so it might be that the issue
is already resolved in some other branch.
Comment 5 svante.schubert 2006-01-31 09:13:08 UTC
started
Comment 6 svante.schubert 2006-01-31 11:09:40 UTC
Renamed Java 5 key word 'enum' to 'enumeration' (according to patch) and tested
by JDK 5 compilation.
Comment 7 svante.schubert 2006-01-31 11:55:24 UTC
*** Issue 59797 has been marked as a duplicate of this issue. ***
Comment 8 pavel 2006-03-08 20:13:17 UTC
*** Issue 62918 has been marked as a duplicate of this issue. ***
Comment 9 pavel 2006-03-20 11:13:10 UTC
*** Issue 63371 has been marked as a duplicate of this issue. ***
Comment 10 svante.schubert 2006-04-07 11:16:34 UTC
*** Issue 57544 has been marked as a duplicate of this issue. ***
Comment 11 svante.schubert 2006-04-07 12:04:55 UTC
Please verify fix in CWS latex

re-open issue and reassign to jw@openoffice.org
Comment 12 svante.schubert 2006-04-07 12:05:03 UTC
reassign to jw@openoffice.org
Comment 13 svante.schubert 2006-04-07 12:05:07 UTC
reset resolution to FIXED
Comment 14 jack.warchold 2006-04-20 14:34:08 UTC
reassign to SUS

please find a nother developer to verify this issue


re-open issue and reassign to sus
Comment 15 jack.warchold 2006-04-20 14:34:12 UTC
reassign to sus
Comment 16 jack.warchold 2006-04-20 14:34:16 UTC
reset resolution to FIXED
Comment 17 jack.warchold 2006-04-20 14:36:20 UTC
reassign to sus
Comment 18 jack.warchold 2006-04-20 14:36:25 UTC
reset resolution to FIXED
Comment 19 pavel 2006-05-02 16:12:21 UTC
reopening. CWS latex has target 2.0.4. This issue is a build breaker.
We want to have ti fixed in 2.0.3. We really do not want to answer millions of
questions about compilation and mark another million of issues to eb duplicate
of this one.

Are you OK to create separate cws just for this fix? I'll do it...
Comment 20 svante.schubert 2006-05-02 16:24:28 UTC
Hi Pavel,

thanks for you proposal. The CWS willl be integrated in pp3, just back from
vacations.
Will sort this out.

Thanks,
Svante

SUS->SW:
Stephan could you please verifiy this issue in CWS Latex for me, thanks..
Comment 21 stephan.wunderlich 2006-05-02 17:11:36 UTC
resetting to fixed
Comment 22 stephan.wunderlich 2006-05-02 17:12:08 UTC
ok in cws_latex => verified
Comment 23 pavel 2006-05-15 12:13:31 UTC
/me still expects this to be integrated in 2.0.3 according to target.
Comment 24 pavel 2006-05-16 05:46:27 UTC
reopening.
Comment 25 pavel 2006-05-16 05:47:13 UTC
Fixed in cws java15enum.
Comment 26 pavel 2006-05-16 05:47:49 UTC
Caolan: can you please verife/approve the cws?
Comment 27 caolanm 2006-05-16 08:51:25 UTC
yeah, fine
Comment 28 caolanm 2006-05-22 09:46:15 UTC
SRC680m170/OOC680_m2
Comment 29 jjmckenzie 2006-12-26 04:25:32 UTC
Updated summary to allow keyword searchs.

James McKenzie