【发布时间】:2013-01-31 21:34:23
【问题描述】:
我正在尝试访问这个受保护的类:protected boolean canDraw(),并将其值放入变量中。我尝试访问它的两种方式都不起作用:
<%@ page import="com.day.cq.wcm.foundation.Image" %>
<%@include file="/apps/tju/global.jsp"%>
<% //.....
Image thisImage = new Image(resource); %>
boolean foo = thisImage.canDraw(); throws Image 类型的方法 canDraw() 不可见
和
boolean foo = super.canDraw(); throws 方法 canDraw() 未为 HttpJspBase 类型定义
可以在此处找到正在使用的类的完整 javadoc:http://dev.day.com/docs/en/cq/5-3/javadoc/com/day/cq/wcm/foundation/Image.html
【问题讨论】: