Results 1 to 3 of 3

Thread: Problem Downgrade form jdk1.5 to jdk 1.4

  1. #1
    Join Date
    Jan 2008
    Location
    Spain - Espaņa
    Posts
    37

    Exclamation Problem Downgrade form jdk1.5 to jdk 1.4

    Hi guys,
    I have a problem with dowgrade from jdk1.5 to jdk1.4 with Spring Web Flow 1.0.5 version, I have read that SWF 1.0.5 is compatible with jdk1.4, and I tried to dowgrade it but the compiler give me the next errors using jdk1.4:

    package: org.springframework.webflow.action
    class: ResultObjectBasedEventFactory
    error: java.lang.Enum cannot be resolved to a type

    Code:
    private boolean isJdk5Enum(Class type) {
    if (JdkVersion.getMajorJavaVersion() >= JdkVersion.JAVA_15) {
    return type.isEnum();
    } else {
    return false;
    }
    }
    
    
    private static class EnumNameResolver {
    public static String getEnumName(Object enumValue) {
    return ((java.lang.Enum) enumValue).name();
    }
    }
    package: org.springframework.webflow.conversation.impl
    class: JdkConcurrentConversationLock

    Impossible to import:
    import java.util.concurrent.locks.Lock;
    import java.util.concurrent.locks.ReentrantLock;


    I need to do this downgrade version of jdk, thanks a lot for your help in advance
    Kind regards!

  2. #2
    Join Date
    Sep 2007
    Location
    Brooklyn, NY
    Posts
    20

    Default Need 1.5 to compile

    Web Flow works fine with JDK 1.4 but it looks like you're trying to compile the sources. According to the Web Flow readme though, you need java 1.5 to build it.

  3. #3
    Join Date
    Jan 2008
    Location
    Spain - Espaņa
    Posts
    37

    Default

    Quote Originally Posted by martinimix View Post
    Web Flow works fine with JDK 1.4 but it looks like you're trying to compile the sources. According to the Web Flow readme though, you need java 1.5 to build it.
    Thanks for your answer, I'll build it with java 1.5,
    Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •