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 80485 Details for
Bug 206498
[1.7][compiler] Remove fix for bug 206483 once 1.7 VMS can handle .class files with version 51.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_206498.txt (text/plain), 1.99 KB, created by
Olivier Thomann
on 2007-10-16 14:27:47 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-10-16 14:27:47 EDT
Size:
1.99 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: eval/org/eclipse/jdt/internal/eval/CodeSnippetClassFile.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetClassFile.java,v >retrieving revision 1.45 >diff -u -r1.45 CodeSnippetClassFile.java >--- eval/org/eclipse/jdt/internal/eval/CodeSnippetClassFile.java 16 Oct 2007 18:21:09 -0000 1.45 >+++ eval/org/eclipse/jdt/internal/eval/CodeSnippetClassFile.java 16 Oct 2007 18:23:11 -0000 >@@ -53,10 +53,6 @@ > this.header[this.headerOffset++] = (byte) (0xCAFEBABEL >> 0); > > long targetVersion = this.targetJDK = this.referenceBinding.scope.compilerOptions().targetJDK; >- >- if (targetVersion == ClassFileConstants.JDK1_7) { >- targetVersion = ClassFileConstants.JDK1_6; >- } > this.header[this.headerOffset++] = (byte) (targetVersion >> 8); // minor high > this.header[this.headerOffset++] = (byte) (targetVersion >> 0); // minor low > this.header[this.headerOffset++] = (byte) (targetVersion >> 24); // major high >Index: compiler/org/eclipse/jdt/internal/compiler/ClassFile.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java,v >retrieving revision 1.160 >diff -u -r1.160 ClassFile.java >--- compiler/org/eclipse/jdt/internal/compiler/ClassFile.java 16 Oct 2007 16:51:56 -0000 1.160 >+++ compiler/org/eclipse/jdt/internal/compiler/ClassFile.java 16 Oct 2007 18:23:11 -0000 >@@ -6860,9 +6860,6 @@ > header[headerOffset++] = (byte) (0xCAFEBABEL >> 0); > > long targetVersion = this.targetJDK; >- if (targetVersion == ClassFileConstants.JDK1_7) { >- targetVersion = ClassFileConstants.JDK1_6; >- } > header[headerOffset++] = (byte) (targetVersion >> 8); // minor high > header[headerOffset++] = (byte) (targetVersion>> 0); // minor low > header[headerOffset++] = (byte) (targetVersion >> 24); // major high
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 206498
:
80475
|
80479
| 80485