ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework JavaVersion.java
Date Sun, 30 Dec 2001 06:17:27 GMT
donaldp     01/12/29 22:17:27

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/framework
                        JavaVersion.java
  Log:
  Check for java 1.4
  
  Revision  Changes    Path
  1.2       +6 -3      jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/JavaVersion.java
  
  Index: JavaVersion.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/JavaVersion.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JavaVersion.java	30 Dec 2001 06:14:21 -0000	1.1
  +++ JavaVersion.java	30 Dec 2001 06:17:27 -0000	1.2
  @@ -22,6 +22,7 @@
       public final static JavaVersion JAVA1_1 = new JavaVersion( "Java 1.1", 110 );
       public final static JavaVersion JAVA1_2 = new JavaVersion( "Java 1.2", 120 );
       public final static JavaVersion JAVA1_3 = new JavaVersion( "Java 1.3", 130 );
  +    public final static JavaVersion JAVA1_4 = new JavaVersion( "Java 1.4", 140 );
   
       private final static JavaVersion CURRENT = determineCurrentJavaVersion();
   
  @@ -58,11 +59,13 @@
           try
           {
               Class.forName( "java.lang.Void" );
  -            version = JavaVersion.JAVA1_1;
  +            version = JAVA1_1;
               Class.forName( "java.lang.ThreadLocal" );
  -            version = JavaVersion.JAVA1_2;
  +            version = JAVA1_2;
               Class.forName( "java.lang.StrictMath" );
  -            version = JavaVersion.JAVA1_3;
  +            version = JAVA1_3;
  +            Class.forName("java.lang.CharSequence");
  +            version = JAVA1_4;
           }
           catch( final ClassNotFoundException cnfe )
           {
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message