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 16099 Details for
Bug 79396
[compiler] Static receiver for a static method invocation should be generated to cover side-effects
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD
patch_79396.txt (text/plain), 1.21 KB, created by
Olivier Thomann
on 2004-11-24 10:48:06 EST
(
hide
)
Description:
Apply on HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2004-11-24 10:48:06 EST
Size:
1.21 KB
patch
obsolete
>Index: compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedNameReference.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedNameReference.java,v >retrieving revision 1.67 >diff -u -r1.67 QualifiedNameReference.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedNameReference.java 27 Oct 2004 09:20:47 -0000 1.67 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedNameReference.java 24 Nov 2004 15:46:07 -0000 >@@ -344,9 +344,21 @@ > } > } > } else { >- if (lastFieldBinding != null && !lastFieldBinding.isStatic()){ >- codeStream.invokeObjectGetClass(); // perform null check >- codeStream.pop(); >+ if (lastFieldBinding != null) { >+ if (lastFieldBinding.isStatic()) { >+ codeStream.getstatic(lastFieldBinding); >+ switch (lastFieldBinding.type.id) { >+ case T_double : >+ case T_long : >+ codeStream.pop2(); >+ break; >+ default: >+ codeStream.pop(); >+ } >+ } else { >+ codeStream.invokeObjectGetClass(); // perform null check >+ codeStream.pop(); >+ } > } > > }
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 79396
: 16099