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 170559 Details for
Bug 314836
ASTParser fails on enums when setSource(char[] source) is used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed doc change
patch_314836.txt (text/plain), 1.18 KB, created by
Olivier Thomann
on 2010-05-31 12:33:24 EDT
(
hide
)
Description:
Proposed doc change
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2010-05-31 12:33:24 EDT
Size:
1.18 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: dom/org/eclipse/jdt/core/dom/ASTParser.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTParser.java,v >retrieving revision 1.98 >diff -u -r1.98 ASTParser.java >--- dom/org/eclipse/jdt/core/dom/ASTParser.java 5 Mar 2010 14:54:05 -0000 1.98 >+++ dom/org/eclipse/jdt/core/dom/ASTParser.java 31 May 2010 16:32:06 -0000 >@@ -49,6 +49,12 @@ > * char[] source = ...; > * ASTParser parser = ASTParser.newParser(AST.JLS3); // handles JDK 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6 > * parser.setSource(source); >+ * // In order to parse 1.5 code, some compiler options need to be set to 1.5 >+ * Map options = JavaCore.getOptions(); >+ * options.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_5); >+ * options.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_1_5); >+ * options.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_5); >+ * parset.setCompilerOptions(options); > * CompilationUnit result = (CompilationUnit) parser.createAST(null); > * </pre> > * Once a configured parser instance has been used to create an AST,
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 314836
:
170322
| 170559 |
170625