| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8ef464a commit f30f8f4
85 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -320,7 +320,7 @@ | |||
| 320 | 320 | description="Compile all source files (after generating the source)"> | |
| 321 | 321 | </target> | |
| 322 | 322 | ||
| 323 | - <target name="do-compile" depends="assert-15, resolve-java15-tools"> | ||
| 323 | + <target name="do-compile" depends="assert-15"> | ||
| 324 | 324 | <echo message="Compiling src directory to classes/base and classes/test" /> | |
| 325 | 325 | <mkdir dir="classes/base" /> | |
| 326 | 326 | <mkdir dir="classes/test" /> | |
@@ -334,6 +334,7 @@ | |||
| 334 | 334 | <fileset refid="libs" /> | |
| 335 | 335 | <pathelement location="lib/buildlib/junit.jar" /> | |
| 336 | 336 | <pathelement location="classes/base" /> | |
| 337 | + <pathelement location="testFiles/classes" /> | ||
| 337 | 338 | </classpath> | |
| 338 | 339 | <compilerarg value="-Xlint" /> | |
| 339 | 340 | <!-- Ignore serial warnings, because they occur for every Throwable definition (among others) --> | |
@@ -414,6 +415,7 @@ | |||
| 414 | 415 | <pathelement location="classes/test-14" /> | |
| 415 | 416 | <pathelement location="classes/base-14" /> | |
| 416 | 417 | <pathelement location="classes/lib-14" /> | |
| 418 | + <pathelement location="testFiles/classes" /> | ||
| 417 | 419 | </path> | |
| 418 | 420 | </pathconvert> | |
| 419 | 421 | <!-- Note: "verifyrefs" is called "refclasspath" in the documentation, but that name is incorrect --> | |
@@ -442,6 +444,7 @@ | |||
| 442 | 444 | <pathelement location="classes/test" /> | |
| 443 | 445 | <pathelement location="classes/base" /> | |
| 444 | 446 | <pathelement location="classes/lib" /> | |
| 447 | + <pathelement location="testFiles/classes" /> | ||
| 445 | 448 | </classpath> | |
| 446 | 449 | <formatter type="brief" usefile="false" /> | |
| 447 | 450 | <batchtest> | |
@@ -462,6 +465,7 @@ | |||
| 462 | 465 | <pathelement location="classes/test-14" /> | |
| 463 | 466 | <pathelement location="classes/base-14" /> | |
| 464 | 467 | <pathelement location="classes/lib-14" /> | |
| 468 | + <pathelement location="testFiles/classes" /> | ||
| 465 | 469 | </classpath> | |
| 466 | 470 | <formatter type="brief" usefile="false" /> | |
| 467 | 471 | <batchtest> | |
@@ -479,6 +483,7 @@ | |||
| 479 | 483 | <pathelement location="classes/test-14" /> | |
| 480 | 484 | <pathelement location="classes/base-14" /> | |
| 481 | 485 | <pathelement location="classes/lib-14" /> | |
| 486 | + <pathelement location="testFiles/classes" /> | ||
| 482 | 487 | </classpath> | |
| 483 | 488 | <formatter type="brief" usefile="false" /> | |
| 484 | 489 | <batchtest> | |
@@ -602,6 +607,7 @@ | |||
| 602 | 607 | <classpath> | |
| 603 | 608 | <fileset refid="libs" /> | |
| 604 | 609 | <pathelement location="lib/buildlib/junit.jar" /> | |
| 610 | + <pathelement location="testFiles/classes" /> | ||
| 605 | 611 | </classpath> | |
| 606 | 612 | <link href="http://java.sun.com/j2se/1.5/docs/api" /> | |
| 607 | 613 | <link href="http://junit.org/junit/javadoc/3.8.1" /> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -510,7 +510,7 @@ private class MembersVisitor extends VisitorObject<Void> { | |||
| 510 | 510 | // Add a reference to the outer instance | |
| 511 | 511 | FieldDeclaration fd; | |
| 512 | 512 | fd = new FieldDeclaration(Modifier.PUBLIC, | |
| 513 | - new ReferenceType(dc.getName()), | ||
| 513 | + new ReferenceTypeName(dc.getName()), | ||
| 514 | 514 | "this$" + getNestingLevel(), | |
| 515 | 515 | null); | |
| 516 | 516 | fd.acceptVisitor(this); | |
@@ -528,7 +528,7 @@ private class MembersVisitor extends VisitorObject<Void> { | |||
| 528 | 528 | cd = new ConstructorDeclaration(Modifier.PUBLIC, | |
| 529 | 529 | classTree.getName(), | |
| 530 | 530 | new LinkedList<FormalParameter>(), | |
| 531 | - new LinkedList<ReferenceType>(), | ||
| 531 | + new LinkedList<ReferenceTypeName>(), | ||
| 532 | 532 | ci, | |
| 533 | 533 | new LinkedList<Node>()); | |
| 534 | 534 | cd.acceptVisitor(this); | |
@@ -584,7 +584,7 @@ public Void visit(ConstructorDeclaration node) { | |||
| 584 | 584 | ClassInfo dc = getDeclaringClass(); | |
| 585 | 585 | if (!classTree.hasProperty(TREE_VISITED)) { | |
| 586 | 586 | if (dc != null && !Modifier.isStatic(getModifiers())) { | |
| 587 | - ReferenceType t = new ReferenceType(dc.getName()); | ||
| 587 | + ReferenceTypeName t = new ReferenceTypeName(dc.getName()); | ||
| 588 | 588 | node.getParameters().add(0, | |
| 589 | 589 | new FormalParameter(false, t, "param$0")); | |
| 590 | 590 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,31 +63,31 @@ public TypeVisitor(ClassFinder cf, ClassInfo ctx) { | |||
| 63 | 63 | } | |
| 64 | 64 | ||
| 65 | 65 | /** | |
| 66 | - * Visits a PrimitiveType | ||
| 66 | + * Visits a PrimitiveTypeName | ||
| 67 | 67 | * @param node the node to visit | |
| 68 | 68 | * @return the representation of the visited type | |
| 69 | 69 | */ | |
| 70 | - public ClassInfo visit(PrimitiveType node) { | ||
| 70 | + public ClassInfo visit(PrimitiveTypeName node) { | ||
| 71 | 71 | return new JavaClassInfo(node.getValue()); | |
| 72 | 72 | } | |
| 73 | 73 | ||
| 74 | 74 | /** | |
| 75 | - * Visits a ReferenceType | ||
| 75 | + * Visits a ReferenceTypeName | ||
| 76 | 76 | * @param node the node to visit | |
| 77 | 77 | * @return the representation of the visited type | |
| 78 | 78 | * @exception NoClassDefFoundError if the class cannot be loaded | |
| 79 | 79 | */ | |
| 80 | - public ClassInfo visit(ReferenceType node) { | ||
| 80 | + public ClassInfo visit(ReferenceTypeName node) { | ||
| 81 | 81 | return lookupClass(node.getRepresentation(), context); | |
| 82 | 82 | } | |
| 83 | 83 | ||
| 84 | 84 | /** | |
| 85 | - * Visits a ArrayType | ||
| 85 | + * Visits a ArrayTypeName | ||
| 86 | 86 | * @param node the node to visit | |
| 87 | 87 | * @return the representation of the visited type | |
| 88 | 88 | * @exception NoClassDefFoundError if the class cannot be loaded | |
| 89 | 89 | */ | |
| 90 | - public ClassInfo visit(ArrayType node) { | ||
| 90 | + public ClassInfo visit(ArrayTypeName node) { | ||
| 91 | 91 | ClassInfo ci = node.getElementType().acceptVisitor(this); | |
| 92 | 92 | return ci.getArrayType(); | |
| 93 | 93 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -953,8 +953,8 @@ public Class<?> visit(InnerAllocation node) { | |||
| 953 | 953 | ||
| 954 | 954 | // Check the type to declare | |
| 955 | 955 | Node type = node.getCreationType(); | |
| 956 | - if (type instanceof ReferenceType) { | ||
| 957 | - ReferenceType rt = (ReferenceType)type; | ||
| 956 | + if (type instanceof ReferenceTypeName) { | ||
| 957 | + ReferenceTypeName rt = (ReferenceTypeName)type; | ||
| 958 | 958 | rt.setRepresentation(ec.getName() + "$" + rt.getRepresentation()); | |
| 959 | 959 | } else { | |
| 960 | 960 | throw new ExecutionError("allocation.type", node); | |
@@ -1049,7 +1049,7 @@ public Class<?> visit(ArrayAllocation node) { | |||
| 1049 | 1049 | } | |
| 1050 | 1050 | } | |
| 1051 | 1051 | ||
| 1052 | - // Type-check the type of the array | ||
| 1052 | + // TypeName-check the type of the array | ||
| 1053 | 1053 | Class<?> c = node.getCreationType().acceptVisitor(this); | |
| 1054 | 1054 | ||
| 1055 | 1055 | // Visits the initializer if one | |
@@ -1113,20 +1113,20 @@ public Class<?> visit(ArrayAccess node) { | |||
| 1113 | 1113 | } | |
| 1114 | 1114 | ||
| 1115 | 1115 | /** | |
| 1116 | - * Visits a PrimitiveType | ||
| 1116 | + * Visits a PrimitiveTypeName | ||
| 1117 | 1117 | * @param node the node to visit | |
| 1118 | 1118 | */ | |
| 1119 | - public Class<?> visit(PrimitiveType node) { | ||
| 1119 | + public Class<?> visit(PrimitiveTypeName node) { | ||
| 1120 | 1120 | Class<?> c = node.getValue(); | |
| 1121 | 1121 | node.setProperty(NodeProperties.TYPE, c); | |
| 1122 | 1122 | return c; | |
| 1123 | 1123 | } | |
| 1124 | 1124 | ||
| 1125 | 1125 | /** | |
| 1126 | - * Visits a ReferenceType | ||
| 1126 | + * Visits a ReferenceTypeName | ||
| 1127 | 1127 | * @param node the node to visit | |
| 1128 | 1128 | */ | |
| 1129 | - public Class<?> visit(ReferenceType node) { | ||
| 1129 | + public Class<?> visit(ReferenceTypeName node) { | ||
| 1130 | 1130 | checkGenericReferenceType(node); | |
| 1131 | 1131 | Class<?> c = null; | |
| 1132 | 1132 | try { | |
@@ -1143,17 +1143,17 @@ public Class<?> visit(ReferenceType node) { | |||
| 1143 | 1143 | ||
| 1144 | 1144 | /** | |
| 1145 | 1145 | * If java earlier than 1.5, checks if the node is a | |
| 1146 | - * GenericReferenceType | ||
| 1146 | + * GenericReferenceTypeName | ||
| 1147 | 1147 | * @param node unused | |
| 1148 | 1148 | */ | |
| 1149 | - protected abstract void checkGenericReferenceType(ReferenceType node); | ||
| 1149 | + protected abstract void checkGenericReferenceType(ReferenceTypeName node); | ||
| 1150 | 1150 | ||
| 1151 | 1151 | ||
| 1152 | 1152 | /** | |
| 1153 | - * Visits an ArrayType | ||
| 1153 | + * Visits an ArrayTypeName | ||
| 1154 | 1154 | * @param node the node to visit | |
| 1155 | 1155 | */ | |
| 1156 | - public Class<?> visit(ArrayType node) { | ||
| 1156 | + public Class<?> visit(ArrayTypeName node) { | ||
| 1157 | 1157 | Node eType = node.getElementType(); | |
| 1158 | 1158 | Class<?> c = eType.acceptVisitor(this); | |
| 1159 | 1159 | Class<?> ac = Array.newInstance(c, 0).getClass(); | |
@@ -2866,30 +2866,30 @@ private void checkList(List<? extends Node> l) { | |||
| 2866 | 2866 | * @param refType the reference class | |
| 2867 | 2867 | * @return the corresponding primitive type | |
| 2868 | 2868 | */ | |
| 2869 | - protected static PrimitiveType _correspondingPrimType(Class<?> refClass) { | ||
| 2869 | + protected static PrimitiveTypeName _correspondingPrimType(Class<?> refClass) { | ||
| 2870 | 2870 | if (refClass == Boolean.class) { | |
| 2871 | - return new BooleanType(); | ||
| 2871 | + return new BooleanTypeName(); | ||
| 2872 | 2872 | } | |
| 2873 | 2873 | else if (refClass == Byte.class) { | |
| 2874 | - return new ByteType(); | ||
| 2874 | + return new ByteTypeName(); | ||
| 2875 | 2875 | } | |
| 2876 | 2876 | else if (refClass == Character.class) { | |
| 2877 | - return new CharType(); | ||
| 2877 | + return new CharTypeName(); | ||
| 2878 | 2878 | } | |
| 2879 | 2879 | else if (refClass == Short.class) { | |
| 2880 | - return new ShortType(); | ||
| 2880 | + return new ShortTypeName(); | ||
| 2881 | 2881 | } | |
| 2882 | 2882 | else if (refClass == Integer.class) { | |
| 2883 | - return new IntType(); | ||
| 2883 | + return new IntTypeName(); | ||
| 2884 | 2884 | } | |
| 2885 | 2885 | else if (refClass == Long.class) { | |
| 2886 | - return new LongType(); | ||
| 2886 | + return new LongTypeName(); | ||
| 2887 | 2887 | } | |
| 2888 | 2888 | else if (refClass == Float.class) { | |
| 2889 | - return new FloatType(); | ||
| 2889 | + return new FloatTypeName(); | ||
| 2890 | 2890 | } | |
| 2891 | 2891 | else if (refClass == Double.class) { | |
| 2892 | - return new DoubleType(); | ||
| 2892 | + return new DoubleTypeName(); | ||
| 2893 | 2893 | } | |
| 2894 | 2894 | else { | |
| 2895 | 2895 | throw new RuntimeException("No corresponding primitive type for reference class " + | |
| Back | FazBrowse Home | New Git URL |
0 commit comments