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 27369 Details for
Bug 110270
Failure in model test 20050921-1200
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_110270.txt (text/plain), 1.22 KB, created by
Olivier Thomann
on 2005-09-21 19:50:26 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-09-21 19:50:26 EDT
Size:
1.22 KB
patch
obsolete
>Index: dom/org/eclipse/jdt/core/dom/CompilationUnit.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnit.java,v >retrieving revision 1.67 >diff -u -r1.67 CompilationUnit.java >--- dom/org/eclipse/jdt/core/dom/CompilationUnit.java 15 Jun 2005 19:06:11 -0000 1.67 >+++ dom/org/eclipse/jdt/core/dom/CompilationUnit.java 21 Sep 2005 23:49:39 -0000 >@@ -161,6 +161,11 @@ > private static final IProblem[] EMPTY_PROBLEMS = new IProblem[0]; > > /** >+ * Canonical empty list of line ends. >+ */ >+ private static final int[] EMPTY_LINE_ENDS = new int[0]; >+ >+ /** > * Messages reported by the compiler during parsing or name resolution. > */ > private Message[] messages; >@@ -195,13 +200,10 @@ > * @param lineEndTable the line end table > */ > void setLineEndTable(int[] lineEndTable) { >- if (lineEndTable == null) { >- throw new NullPointerException(); >- } > // alternate root is *not* considered a structural property > // but we protect them nevertheless > checkModifiable(); >- this.lineEndTable = lineEndTable; >+ this.lineEndTable = lineEndTable == null ? EMPTY_LINE_ENDS : lineEndTable; > } > > /**
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 110270
:
27369
|
27404
|
27613
|
27615