src/main/java/ognl/OgnlRuntime.java
public static boolean isJdk15()
    {
        if (_jdkChecked)
            return _jdk15;

        try
        {
            Class.forName("java.lang.annotation.Annotation");
            _jdk15 = true;
        } catch (Exception e) { /* ignore */ }

        _jdkChecked = true;

        return _jdk15;
    }
public static boolean isJdk15()
    {
        if (_jdkChecked)
            return _jdk15;

        try
        {
            Class.forName("java.lang.annotation.Annotation");
            _jdk15 = true;
        } catch (Exception e) { /* ignore */ }

        _jdkChecked = true;

        return _jdk15;
    }
public static boolean isJdk15 ( ) { if ( _jdkChecked ) return _jdk15 ; try { Class . forName ( "java.lang.annotation.Annotation" ) ; _jdk15 = true ; } catch ( Exception e ) { /* ignore */ } _jdkChecked = true ; return _jdk15 ; }
Checks if the current jvm is java language >= 1.5 compatible.

@return True if jdk15 features are present.
Checks if the current jvm is java language > = 1 . 5 compatible .