Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 198483 Details for
Bug 350095
The 2000th (0-based) enum constant is null
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Proposed fix + updated regression test
patch_350095.txt (text/plain), 3.58 KB, created by
Olivier Thomann
on 2011-06-23 13:23:06 EDT
(
hide
)
Description:
Proposed fix + updated regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2011-06-23 13:23:06 EDT
Size:
3.58 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/ast/Clinit.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Clinit.java,v >retrieving revision 1.63 >diff -u -r1.63 Clinit.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/Clinit.java 5 Mar 2011 17:18:43 -0000 1.63 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/Clinit.java 23 Jun 2011 17:20:07 -0000 >@@ -213,7 +213,7 @@ > if (count > ENUM_CONSTANTS_THRESHOLD) { > SyntheticMethodBinding syntheticMethod = declaringType.binding.addSyntheticMethodForEnumInitialization(begin, i); > codeStream.invoke(Opcodes.OPC_invokestatic, syntheticMethod, null /* default declaringClass */); >- begin = -1; >+ begin = i; > count = 0; > } > } >#P org.eclipse.jdt.core.tests.compiler >Index: src/org/eclipse/jdt/core/tests/compiler/regression/XLargeTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/XLargeTest.java,v >retrieving revision 1.20 >diff -u -r1.20 XLargeTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/XLargeTest.java 5 Jan 2011 19:57:24 -0000 1.20 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/XLargeTest.java 23 Jun 2011 17:20:14 -0000 >@@ -11876,7 +11876,7 @@ > .append("7717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839") > .append("1840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119") > .append("0219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964") >- .append("19651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999null2001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620") >+ .append("1965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620") > .append("2720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089") > .append("2090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121") > .append("5221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214")
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 350095
:
198432
| 198483 |
202315