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 181953 Details for
Bug 328689
[1.4][compiler] "Incompatible conditional operand types Class and Class"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch - no tests yet
patch.txt (text/plain), 1.12 KB, created by
Srikanth Sankaran
on 2010-10-28 10:14:48 EDT
(
hide
)
Description:
Proposed patch - no tests yet
Filename:
MIME Type:
Creator:
Srikanth Sankaran
Created:
2010-10-28 10:14:48 EDT
Size:
1.12 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java,v >retrieving revision 1.52 >diff -u -r1.52 ClassLiteralAccess.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java 1 Oct 2010 21:09:58 -0000 1.52 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java 28 Oct 2010 14:13:44 -0000 >@@ -101,7 +101,8 @@ > scope.problemReporter().illegalClassLiteralForTypeVariable((TypeVariableBinding)this.targetType, this); > } > ReferenceBinding classType = scope.getJavaLangClass(); >- if (classType.isGenericType()) { >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=328689 >+ if (scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5) { > // Integer.class --> Class<Integer>, perform boxing of base types (int.class --> Class<Integer>) > TypeBinding boxedType = null; > if (this.targetType.id == T_void) {
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 328689
:
181953
|
182018