Skip to content

Commit 2b10ea2

Browse files
committed
This revision contains an attempt to patch the Java8 dynamicjava code
repository so that it will build. The attempt did not succeed, but they enable javacc to run successfully and the compiler to get past a blatant error (declaring a constructor with name LambdaExpression in the MethodReference class). Unfortunately, the code base was left in a highly inconsistent state: 15 syntax errors (involving the addition of the new file/class MethodReference.java) still remain.
1 parent 716aeaf commit 2b10ea2

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

dynamicjava/build.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
<property environment="env" />
3434
<property name="java6-home" value="${env.JAVA6_HOME}" />
35-
<property name="javacc-home" value="${env.JAVACC_HOME}" />
35+
<property name="javacc-home" value="${env.JAVACC_HOME}" />
3636
<property name="clover-jar" value="${env.CLOVER_JAR}" />
3737
<property name="findbugs-home" value="${env.FINDBUGS_HOME}" />
3838

@@ -56,8 +56,7 @@
5656

5757
<fileset id="libs" dir="lib" includes="*.jar" /> <!-- Only include jars that are at the top level (not in buildlib) -->
5858

59-
60-
59+
6160
<!-- ************
6261
Help Targets
6362
************ -->
@@ -282,8 +281,6 @@
282281
<patternset excludes="META-INF/**" />
283282
</unjar>
284283
</target>
285-
286-
287284

288285
<!-- ***************
289286
Testing Targets

dynamicjava/src/koala/dynamicjava/parser/grammar.jj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ PARSER_END(Parser)
795795
| < CLASS: "class" >
796796
| < CONST: "const" >
797797
| < CONTINUE: "continue" >
798-
| < DEFAULT: "default" >
798+
| < _DEFAULT: "default" >
799799
| < DO: "do" >
800800
| < DOUBLE: "double" >
801801
| < ELSE: "else" >

dynamicjava/src/koala/dynamicjava/tree/MethodReference.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
public class MethodReference extends PrimaryExpression {
66
private Option<TypeName> typ;
77
private Option<String> methodName;
8-
public LambdaExpression(TypeName type,
8+
public MethodReference(TypeName type,
99
String methodName) {
1010
this(type, methodName, SourceInfo.NONE);
1111
}

0 commit comments

Comments
 (0)