GeezerVison is showing github.com — Update ASTParser to support Java 13 syntax (#323) · mfussenegger/java-debug@32f3a1f
File treeExpand file treeCollapse file tree Open diff view settings com.microsoft.java.debug.core com.microsoft.java.debug.plugin src/main/java/com/microsoft/java/debug/plugin/internal
com.microsoft.java.debug.repository
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: com.microsoft.java.debug.core/pom.xml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 5 | 5 | <parent> | 6 | 6 | <groupId>com.microsoft.java</groupId> | 7 | 7 | <artifactId>java-debug-parent</artifactId> | 8 | | - <version>0.25.0</version> | | 8 | + <version>0.25.1</version> | 9 | 9 | </parent> | 10 | 10 | <artifactId>com.microsoft.java.debug.core</artifactId> | 11 | 11 | <packaging>jar</packaging> | |
Collapse file Copy file name to clipboardExpand all lines: com.microsoft.java.debug.plugin/.classpath +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 6 | 6 | <classpathentry kind="src" path="src/main/java"/> | 7 | 7 | <classpathentry exported="true" kind="lib" path="lib/rxjava-2.1.1.jar"/> | 8 | 8 | <classpathentry exported="true" kind="lib" path="lib/reactive-streams-1.0.0.jar"/> | 9 | | - <classpathentry exported="true" kind="lib" path="lib/com.microsoft.java.debug.core-0.25.0.jar" sourcepath="/com.microsoft.java.debug.core"/> | | 9 | + <classpathentry exported="true" kind="lib" path="lib/com.microsoft.java.debug.core-0.25.1.jar" sourcepath="/com.microsoft.java.debug.core"/> | 10 | 10 | <classpathentry kind="output" path="target/classes"/> | 11 | 11 | </classpath> |
Collapse file Copy file name to clipboardExpand all lines: com.microsoft.java.debug.plugin/META-INF/MANIFEST.MF +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ Manifest-Version: 1.0 | 2 | 2 | Bundle-ManifestVersion: 2 | 3 | 3 | Bundle-Name: Java Debug Server Plugin | 4 | 4 | Bundle-SymbolicName: com.microsoft.java.debug.plugin;singleton:=true | 5 | | -Bundle-Version: 0.25.0 | | 5 | +Bundle-Version: 0.25.1 | 6 | 6 | Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | 7 | 7 | Bundle-ActivationPolicy: lazy | 8 | 8 | Bundle-Activator: com.microsoft.java.debug.plugin.internal.JavaDebuggerServerPlugin | @@ -24,4 +24,4 @@ Bundle-ClassPath: lib/commons-io-2.5.jar, | 24 | 24 | ., | 25 | 25 | lib/rxjava-2.1.1.jar, | 26 | 26 | lib/reactive-streams-1.0.0.jar, | 27 | | - lib/com.microsoft.java.debug.core-0.25.0.jar | | 27 | + lib/com.microsoft.java.debug.core-0.25.1.jar |
Collapse file Copy file name to clipboardExpand all lines: com.microsoft.java.debug.plugin/pom.xml +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 5 | 5 | <parent> | 6 | 6 | <groupId>com.microsoft.java</groupId> | 7 | 7 | <artifactId>java-debug-parent</artifactId> | 8 | | - <version>0.25.0</version> | | 8 | + <version>0.25.1</version> | 9 | 9 | </parent> | 10 | 10 | <artifactId>com.microsoft.java.debug.plugin</artifactId> | 11 | 11 | <packaging>eclipse-plugin</packaging> | | 45 | 45 | <artifactItem> | 46 | 46 | <groupId>com.microsoft.java</groupId> | 47 | 47 | <artifactId>com.microsoft.java.debug.core</artifactId> | 48 | | - <version>0.25.0</version> | | 48 | + <version>0.25.1</version> | 49 | 49 | </artifactItem> | 50 | 50 | </artifactItems> | 51 | 51 | </configuration> | |
Collapse file Copy file name to clipboardExpand all lines: com.microsoft.java.debug.plugin/src/main/java/com/microsoft/java/debug/plugin/internal/JdtSourceLookUpProvider.java +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -92,8 +92,8 @@ public String[] getFullyQualifiedName(String uri, int[] lines, int[] columns) th | 92 | 92 | return new String[0]; | 93 | 93 | } | 94 | 94 |
| 95 | | - // Currently the highest version the debugger supports is Java SE 9 Edition (JLS9). | 96 | | - final ASTParser parser = ASTParser.newParser(AST.JLS9); | | 95 | + // Currently the highest version the debugger supports is JavaSE-13 Edition (JLS13). | | 96 | + final ASTParser parser = ASTParser.newParser(AST.JLS13); | 97 | 97 | parser.setResolveBindings(true); | 98 | 98 | parser.setBindingsRecovery(true); | 99 | 99 | parser.setStatementsRecovery(true); | @@ -122,9 +122,9 @@ public String[] getFullyQualifiedName(String uri, int[] lines, int[] columns) th | 122 | 122 | * the user need specify the compiler options explicitly. | 123 | 123 | */ | 124 | 124 | Map<String, String> javaOptions = JavaCore.getOptions(); | 125 | | - javaOptions.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_9); | 126 | | - javaOptions.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_9); | 127 | | - javaOptions.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_9); | | 125 | + javaOptions.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_13); | | 126 | + javaOptions.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_13); | | 127 | + javaOptions.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_13); | 128 | 128 | parser.setCompilerOptions(javaOptions); | 129 | 129 | astUnit = (CompilationUnit) parser.createAST(null); | 130 | 130 | } else { | |
Collapse file Copy file name to clipboardExpand all lines: com.microsoft.java.debug.repository/category.xml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | <?xml version="1.0" encoding="UTF-8"?> | 2 | 2 | <site> | 3 | | - <bundle id="com.microsoft.java.debug.plugin" version="0.25.0"> | | 3 | + <bundle id="com.microsoft.java.debug.plugin" version="0.25.1"> | 4 | 4 | <category name="javadebug" /> | 5 | 5 | </bundle> | 6 | 6 | <category-def name="javadebug" label="Java Debug Server"/> | |
Collapse file Copy file name to clipboardExpand all lines: com.microsoft.java.debug.repository/pom.xml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 | <parent> | 5 | 5 | <groupId>com.microsoft.java</groupId> | 6 | 6 | <artifactId>java-debug-parent</artifactId> | 7 | | - <version>0.25.0</version> | | 7 | + <version>0.25.1</version> | 8 | 8 | </parent> | 9 | 9 | <artifactId>com.microsoft.java.debug.repository</artifactId> | 10 | 10 | <packaging>eclipse-repository</packaging> | |
Collapse file Copy file name to clipboardExpand all lines: java.debug.target +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | <unit id="org.apache.commons.io" version="2.2.0.v201405211200"/> | 8 | 8 | <unit id="org.apache.commons.lang3" version="3.1.0.v201403281430"/> | 9 | 9 | <unit id="org.apache.log4j" version="1.2.15.v201012070815"/> | 10 | | - <repository location="http://download.eclipse.org/tools/orbit/R-builds/R20170516192513/repository"/> | | 10 | + <repository location="https://download.eclipse.org/tools/orbit/R-builds/R20170516192513/repository"/> | 11 | 11 | </location> | 12 | 12 | <location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit"> | 13 | 13 | <unit id="org.eclipse.xtend.sdk.feature.group" version="0.0.0"/> | 14 | 14 | <unit id="org.eclipse.xtext.sdk.feature.group" version="0.0.0"/> | 15 | | - <repository location="http://download.eclipse.org/releases/2019-06/"/> | | 15 | + <repository location="https://download.eclipse.org/releases/2019-12/"/> | 16 | 16 | </location> | 17 | 17 | <location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit"> | 18 | 18 | <unit id="org.jboss.tools.maven.apt.core" version="0.0.0"/> | 19 | | - <repository location="http://download.jboss.org/jbosstools/updates/m2e-extensions/m2e-apt/1.5.2-2018-12-24_15-46-05-H18/"/> | | 19 | + <repository location="https://download.jboss.org/jbosstools/updates/m2e-extensions/m2e-apt/1.5.2-2018-12-24_15-46-05-H18/"/> | 20 | 20 | </location> | 21 | 21 | <location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit"> | 22 | 22 | <unit id="org.eclipse.jdt.ls.core" version="0.0.0"/> | 23 | | - <repository location="http://download.eclipse.org/jdtls/snapshots/repository/latest/"/> | | 23 | + <repository location="https://download.eclipse.org/jdtls/snapshots/repository/latest/"/> | 24 | 24 | </location> | 25 | 25 | </locations> | 26 | 26 | </target> |
Collapse file Copy file name to clipboardExpand all lines: pom.xml +6-6Lines changed: 6 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 6 | 6 | <name>${base.name} :: Parent</name> | 7 | 7 | <description>The Java Debug Server is an implementation of Visual Studio Code (VSCode) Debug Protocol. It can be used in Visual Studio Code to debug Java programs.</description> | 8 | 8 | <url>https://github.com/Microsoft/java-debug</url> | 9 | | - <version>0.25.0</version> | | 9 | + <version>0.25.1</version> | 10 | 10 | <packaging>pom</packaging> | 11 | 11 | <properties> | 12 | 12 | <base.name>Java Debug Server for Visual Studio Code</base.name> | | 154 | 154 | </profiles> | 155 | 155 | <repositories> | 156 | 156 | <repository> | 157 | | - <id>201906</id> | | 157 | + <id>201912</id> | 158 | 158 | <layout>p2</layout> | 159 | | - <url>http://download.eclipse.org/releases/2019-06/</url> | | 159 | + <url>https://download.eclipse.org/releases/2019-12/</url> | 160 | 160 | </repository> | 161 | 161 | <repository> | 162 | 162 | <id>oss.sonatype.org</id> | | 168 | 168 | <repository> | 169 | 169 | <id>JDT.LS</id> | 170 | 170 | <layout>p2</layout> | 171 | | - <url>http://download.eclipse.org/jdtls/snapshots/repository/latest/</url> | | 171 | + <url>https://download.eclipse.org/jdtls/snapshots/repository/latest/</url> | 172 | 172 | </repository> | 173 | 173 | <repository> | 174 | 174 | <id>JBOLL.TOOLS</id> | 175 | 175 | <layout>p2</layout> | 176 | | - <url>http://download.jboss.org/jbosstools/updates/m2e-extensions/m2e-apt/1.5.0-2018-05-16_00-46-30-H11</url> | | 176 | + <url>https://download.jboss.org/jbosstools/updates/m2e-extensions/m2e-apt/1.5.0-2018-05-16_00-46-30-H11</url> | 177 | 177 | </repository> | 178 | 178 | <repository> | 179 | 179 | <id>orbit</id> | 180 | 180 | <layout>p2</layout> | 181 | | - <url>http://download.eclipse.org/tools/orbit/R-builds/R20170516192513/repository/</url> | | 181 | + <url>https://download.eclipse.org/tools/orbit/R-builds/R20170516192513/repository/</url> | 182 | 182 | </repository> | 183 | 183 | </repositories> | 184 | 184 | </project> |
|