Skip to content

Commit

Permalink
Remove obsoleted compiler options from UI code
Browse files Browse the repository at this point in the history
- Inline finally blocks (larger class files, but improved performance)
(JavaCore.COMPILER_CODEGEN_INLINE_JSR_BYTECODE)
- Disallow identifiers called 'assert'
(JavaCore.COMPILER_PB_ASSERT_IDENTIFIER)
- Disallow identifiers called 'enum'
(JavaCore.COMPILER_PB_ENUM_IDENTIFIER)

See eclipse-jdt#1465
  • Loading branch information
iloveeclipse committed Aug 7, 2024
1 parent 1190120 commit c48f110
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 147 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,10 @@ public static void setComplianceOptions(Map<String, String> map, String complian
JavaCore.setComplianceOptions(compliance, map);
}

/**
* @param compliance currently unused
*/
public static void setDefaultClassfileOptions(Map<String, String> map, String compliance) {
map.put(JavaCore.COMPILER_CODEGEN_INLINE_JSR_BYTECODE, is50OrHigher(compliance) ? JavaCore.ENABLED : JavaCore.DISABLED);
map.put(JavaCore.COMPILER_LOCAL_VARIABLE_ATTR, JavaCore.GENERATE);
map.put(JavaCore.COMPILER_LINE_NUMBER_ATTR, JavaCore.GENERATE);
map.put(JavaCore.COMPILER_SOURCE_FILE_ATTR, JavaCore.GENERATE);
Expand Down
Loading

0 comments on commit c48f110

Please sign in to comment.