Skip to content

Java 8 introspection causes breakage with FreeMarker Configuration bean [SPR-12448] #17053

Closed
@spring-projects-issues

Description

@spring-projects-issues

George Turner Jr opened SPR-12448 and commented

When using the following configuration for a Freemarker template in Java 8, Spring throws a java.beans.IntrospectionException. This configuration works fine with Java 7.

<bean class="freemarker.template.Configuration">
            <property name="templateLoader">
                <bean class="org.springframework.ui.freemarker.SpringTemplateLoader">
                    <constructor-arg>
                        <bean class="org.springframework.core.io.DefaultResourceLoader"/>
                    </constructor-arg>
                    <constructor-arg value="/freemarker"/>
                </bean>
            </property>
        </bean>

Affects: 4.0.5

Issue Links:

Referenced from: commits 282aded, 1f45dd2

Backported to: 4.0.8

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions