staruml / staruml-java

Java extension for StarUML
MIT License
224 stars 90 forks source link

Java code Parse error on "... int RSV_BITMASK = 0b100;" #22

Open Rtfsc-8 opened 5 years ago

Rtfsc-8 commented 5 years ago

Java source code tomcat_8_5_3

Debug error message:

  1. .config/StarUML/extensions/user/staruml.java/code-analyzer.js:167

[Java] Failed to parse - /tomcat85/java/org/apache/tomcat/websocket/PerMessageDeflate.java

__dirname.performFirstPhase.options._files.forEach.file @ .config/StarUML/extensions/user/staruml.java/code-analyzer.js:167
performFirstPhase @ .config/StarUML/extensions/user/staruml.java/code-analyzer.js:159
analyze @ .config/StarUML/extensions/user/staruml.java/code-analyzer.js:136
analyze @ .config/StarUML/extensions/user/staruml.java/code-analyzer.js:1166
_handleReverse @ .config/StarUML/extensions/user/staruml.java/main.js:100
execute @ app.asar/src/engine/command-manager.js:93
ipcRenderer.on.args @ app.asar/src/app-context.js:673
emitThree @ events.js:116
emit @ events.js:197
  1. .config/StarUML/extensions/user/staruml.java/code-analyzer.js:168
    Error: Parse error on line 42:
    ... int RSV_BITMASK = 0b100;    private st
    -----------------------^
    Expecting 'SEMI', 'COMMA', got 'Identifier'
    at Parser.parseError (.config/StarUML/extensions/user/staruml.java/grammar/java7.js:1617:15)
    at Parser.parse (.config/StarUML/extensions/user/staruml.java/grammar/java7.js:1675:22)
    at Object.exports.parse (.config/StarUML/extensions/user/staruml.java/grammar/java7.js:2438:50)
    at __dirname.performFirstPhase.options._files.forEach.file (.config/StarUML/extensions/user/staruml.java/code-analyzer.js:162:25)
    at Array.forEach (native)
    at JavaCodeAnalyzer.performFirstPhase (.config/StarUML/extensions/user/staruml.java/code-analyzer.js:159:17)
    at JavaCodeAnalyzer.analyze (.config/StarUML/extensions/user/staruml.java/code-analyzer.js:136:10)
    at Object.analyze (.config/StarUML/extensions/user/staruml.java/code-analyzer.js:1166:16)
    at _handleReverse (.config/StarUML/extensions/user/staruml.java/main.js:100:20)
    at CommandManager.execute (app.asar/src/engine/command-manager.js:93:22)

Thks