Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 533158

Summary: [syntax highlighting] requires static is not highlighted correctly in module-info.java
Product: [Eclipse Project] JDT Reporter: Lukas Eder <lukas.eder>
Component: UIAssignee: Noopur Gupta <noopur_gupta>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: noopur_gupta
Version: 4.7.3   
Target Milestone: 4.8 M7   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description Lukas Eder CLA 2018-04-03 05:13:01 EDT
Create a module-info.java file as follows:

module x {
    requires static java.compiler;
}

The keyword "static" should be highlighted as a keyword, but it currently isn't. See also:
https://docs.oracle.com/javase/specs/jls/se10/html/jls-7.html#jls-RequiresModifier
Comment 1 Noopur Gupta CLA 2018-04-03 07:14:49 EDT

*** This bug has been marked as a duplicate of bug 532735 ***