Janino

Janino 2.4.5 does not compile with JDK 1.5

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Win XP. Sun JDK 1.5.
  • Number of attachments :
    1

Description

Janino fails to compile with the following error:

javac -g \
-d bjanino \
org/codehaus/janino/*.java \
org/codehaus/janino/tools/*.java \
org/codehaus/janino/util/*.java \
org/codehaus/janino/util/enumerator/*.java \
org/codehaus/janino/util/iterator/*.java \
org/codehaus/janino/util/resource/*.java
org/codehaus/janino/tools/JGrep.java:240: reference to Scanner is ambiguous, bot
h class org.codehaus.janino.Scanner in org.codehaus.janino and class java.util.S
canner in java.util match
private static MethodInvocationTarget parseMethodInvocationPattern(String mi
p) throws Scanner.ScanException, IOException, Parser.ParseException {

Attached is jgrep.patch which fixes the problem.

Activity

Hide
Arno Unkrig added a comment -

Thank you for your analysis.

The fix will go into 2.4.6. (to be released most probably next week).

CU

Arno

Show
Arno Unkrig added a comment - Thank you for your analysis. The fix will go into 2.4.6. (to be released most probably next week). CU Arno
Hide
Arno Unkrig added a comment -

Resolved with JANINO 2.4.6.

Show
Arno Unkrig added a comment - Resolved with JANINO 2.4.6.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: