Skip to content

Commit f5dccb0

Browse files
author
mgricken
committed
Invokes NextGen compiler now, but compiler has problems.
git-svn-id: file:///tmp/test-svn/branches/drjava-compilers@5310 fe72c1cf-3628-48e9-8b72-1c46755d3cff
1 parent e8a0105 commit f5dccb0

File tree

13 files changed

+454
-271
lines changed

13 files changed

+454
-271
lines changed

drjava/lib/javalanglevels-base.jar

0 Bytes
Binary file not shown.

drjava/lib/platform.jar

3.75 KB
Binary file not shown.

drjava/lib/plt.jar

-1 Bytes
Binary file not shown.

drjava/src/edu/rice/cs/drjava/model/JarJDKToolsLibrary.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,10 @@ public static Iterable<JarJDKToolsLibrary> search(GlobalModel model) {
488488
if (mapToAddTo.containsKey(v)) { mapToAddTo.put(v, IterUtil.compose(lib, mapToAddTo.get(v))); }
489489
else { mapToAddTo.put(v, IterUtil.singleton(lib)); }
490490
}
491+
else {
492+
JDKToolsLibrary.msg("\tlibrary is not valid: compiler="+lib.compiler().isAvailable()+
493+
" debugger="+lib.debugger().isAvailable()+" javadoc="+lib.javadoc().isAvailable());
494+
}
491495
}
492496
}
493497

@@ -509,7 +513,8 @@ public static Iterable<JarJDKToolsLibrary> search(GlobalModel model) {
509513
if ((javaVersion.majorVersion().equals(compoundVersion.majorVersion())) &&
510514
(javaVersion.maintenance()==compoundVersion.maintenance()) &&
511515
(javaVersion.update()==compoundVersion.update()) &&
512-
(javaVersion.release()==compoundVersion.release())) {
516+
(javaVersion.release()==compoundVersion.release()) &&
517+
(javaVersion.supports(compoundLib.jdkDescriptor().getMinimumMajorVersion()))) {
513518
JDKToolsLibrary.msg("\t\tfound");
514519
found = javaLib;
515520
break;
@@ -520,7 +525,8 @@ public static Iterable<JarJDKToolsLibrary> search(GlobalModel model) {
520525
for(JarJDKToolsLibrary javaLib: collapsed) {
521526
JDKToolsLibrary.msg("\tmajor? "+javaLib.version());
522527
FullVersion javaVersion = javaLib.version();
523-
if (javaVersion.majorVersion().equals(compoundVersion.majorVersion())) {
528+
if (javaVersion.majorVersion().equals(compoundVersion.majorVersion()) &&
529+
javaVersion.supports(compoundLib.jdkDescriptor().getMinimumMajorVersion())) {
524530
JDKToolsLibrary.msg("\t\tfound");
525531
found = javaLib;
526532
break;

dynamicjava/lib/plt.jar

-1 Bytes
Binary file not shown.

javalanglevels/lib/plt.jar

-1 Bytes
Binary file not shown.

platform/build.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@
367367
<antcall target="iterate-tests">
368368
<param name="platform-tag" value="nextgen" />
369369
<param name="extra-classpath" value="${nextgen-tools}" />
370-
<!-- <param name="test-jvm" value="${nextgen-exec}" /> --> <!-- TODO -->
371-
<param name="test-jvm" value="${java6-exec}" />
370+
<param name="test-jvm" value="${nextgen-exec}" /> <!-- TODO -->
371+
<!-- <param name="test-jvm" value="${java6-exec}" /> -->
372372
</antcall>
373373
</target>
374374

@@ -1013,7 +1013,7 @@
10131013
<if>
10141014
<not><isset property="nextgen-exec" /></not>
10151015
<then>
1016-
<property name="nextgen-exec-2" location="${nextgen-home}/langtools/bin/nextgen" />
1016+
<property name="nextgen-exec-2" location="${nextgen-home}/bin/nextgen" />
10171017
<available property="nextgen-exec" value="${nextgen-exec-2}" file="${nextgen-exec-2}" />
10181018
</then>
10191019
</if>
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)