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 17169 Details for
Bug 82859
[1.5] void.class is incompatible with Void.TYPE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD
patch_82859.txt (text/plain), 1.38 KB, created by
Olivier Thomann
on 2005-01-14 13:06:20 EST
(
hide
)
Description:
Apply on HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-01-14 13:06:20 EST
Size:
1.38 KB
patch
obsolete
>Index: compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java,v >retrieving revision 1.31 >diff -u -r1.31 ClassLiteralAccess.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java 9 Dec 2004 18:24:32 -0000 1.31 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java 14 Jan 2005 18:03:15 -0000 >@@ -87,7 +87,16 @@ > ReferenceBinding classType = scope.getJavaLangClass(); > if (classType.isGenericType()) { > // Integer.class --> Class<Integer>, perform boxing of base types (int.class --> Class<Integer>) >- this.resolvedType = scope.createParameterizedType(classType, new TypeBinding[]{ scope.boxing(targetType) }, null/*not a member*/); >+ TypeBinding boxedType = null; >+ if (targetType.id == T_void) { >+ boxedType = scope.environment().getType(JAVA_LANG_VOID); >+ if (boxedType == null) { >+ boxedType = new ProblemReferenceBinding(JAVA_LANG_VOID, ProblemReasons.NotFound); >+ } >+ } else { >+ boxedType = scope.boxing(targetType); >+ } >+ this.resolvedType = scope.createParameterizedType(classType, new TypeBinding[]{ boxedType }, null/*not a member*/); > } else { > this.resolvedType = classType; > }
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 82859
: 17169