[JBoss JIRA] (WFLY-4023) javax.el.ImportHandler#importClass & #importPackage doesn't import WEB-INF/classes
by jaikiran pai (JIRA)
[ https://issues.jboss.org/browse/WFLY-4023?page=com.atlassian.jira.plugin.... ]
jaikiran pai commented on WFLY-4023:
------------------------------------
Apparently the spec states that the class has to be loadable by the "current classloader" https://developer.jboss.org/message/908146#908146:
{quote}
EL 3.0 spec
1.22.2 Imports of Packages, Classes, and Static Fields
Either a class or a package can be explicitly imported into the EL evaluation environment. Importing a package imports all the classes in the package. The classes that can be imported are restricted to the classes that can be loaded by the *current class loader*.
{quote}
I haven't read that spec nor have much background on this, so I don't know if current classloader really means context classloader of the current thread.
> javax.el.ImportHandler#importClass & #importPackage doesn't import WEB-INF/classes
> ----------------------------------------------------------------------------------
>
> Key: WFLY-4023
> URL: https://issues.jboss.org/browse/WFLY-4023
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Affects Versions: 8.1.0.Final
> Environment: Win7, Wildfly 8.1.0.Final
> Reporter: Patrick Garner
> Assignee: Farah Juma
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> ImportHandler is not importing classes in WEB-INF/classes and, thus, developers are unable to import classes into the EL evaluation environment per EL 3.0 spec. section 1.22.2 "Imports of Packages, Classes, and Static Fields"
> Here's the ImportHandler relevant code (https://github.com/jboss/jboss-el-api_spec/blob/master/src/main/java/java...)
> {code:java}
> private Class<?> getClassFor(String className) {
> if (!notAClass.contains(className)) {
> try {
> return Class.forName(className, false, getClass().getClassLoader());
> } catch (ClassNotFoundException ex) {
> notAClass.add(className);
> }
> }
> return null;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (WFLY-3922) Add a CheckedAction to each transaction upon creation/inflow to interrupt the transaction's associated threads
by Tom Jenkinson (JIRA)
[ https://issues.jboss.org/browse/WFLY-3922?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson commented on WFLY-3922:
-------------------------------------
I raised a new issue WFLY-4024 which allows the user to set the checked action factory themselves. Once I have that implemented we should consider whether we want WFLY to set this or whether it will be better to let the user do this. As Mark discussed on the forum there were drivers that we wouldn't want to do this for so it might be better for a user to define the behavior themselves if they know their driver will accept the interrupt safely.
> Add a CheckedAction to each transaction upon creation/inflow to interrupt the transaction's associated threads
> --------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-3922
> URL: https://issues.jboss.org/browse/WFLY-3922
> Project: WildFly
> Issue Type: Enhancement
> Components: Transactions
> Reporter: David Lloyd
> Assignee: Tom Jenkinson
> Fix For: 9.0.0.CR1
>
>
> This will allow the application to receive a notification on transaction timeout or termination.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (WFLY-4023) javax.el.ImportHandler#importClass & #importPackage doesn't import WEB-INF/classes
by Patrick Garner (JIRA)
[ https://issues.jboss.org/browse/WFLY-4023?page=com.atlassian.jira.plugin.... ]
Patrick Garner commented on WFLY-4023:
--------------------------------------
I've never submitted a bug report before. Am not sure what else do I need to do. Should I report it to glassfish? If so, what's the URL to report the bug?
> javax.el.ImportHandler#importClass & #importPackage doesn't import WEB-INF/classes
> ----------------------------------------------------------------------------------
>
> Key: WFLY-4023
> URL: https://issues.jboss.org/browse/WFLY-4023
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Affects Versions: 8.1.0.Final
> Environment: Win7, Wildfly 8.1.0.Final
> Reporter: Patrick Garner
> Assignee: Farah Juma
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> ImportHandler is not importing classes in WEB-INF/classes and, thus, developers are unable to import classes into the EL evaluation environment per EL 3.0 spec. section 1.22.2 "Imports of Packages, Classes, and Static Fields"
> Here's the ImportHandler relevant code (https://github.com/jboss/jboss-el-api_spec/blob/master/src/main/java/java...)
> {code:java}
> private Class<?> getClassFor(String className) {
> if (!notAClass.contains(className)) {
> try {
> return Class.forName(className, false, getClass().getClassLoader());
> } catch (ClassNotFoundException ex) {
> notAClass.add(className);
> }
> }
> return null;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (WFLY-2455) Cannot configure the list of recovery modules due to ArjunaRecoveryManagerService hardcoding them
by Tom Jenkinson (JIRA)
[ https://issues.jboss.org/browse/WFLY-2455?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson updated WFLY-2455:
--------------------------------
Assignee: Stefano Maestri (was: Gytis Trikleris)
> Cannot configure the list of recovery modules due to ArjunaRecoveryManagerService hardcoding them
> -------------------------------------------------------------------------------------------------
>
> Key: WFLY-2455
> URL: https://issues.jboss.org/browse/WFLY-2455
> Project: WildFly
> Issue Type: Enhancement
> Components: Transactions
> Affects Versions: 8.0.0.Beta1
> Reporter: Koen Janssens
> Assignee: Stefano Maestri
>
> Using a custom jbossts-properties.xml file defined via the com.arjuna.ats.arjuna.common.propertiesFile systemsetting, i can register a custom recovery manager for arjuna.
> However, the ArjunaRecoveryManagerService class overwrite the recovery configuration mentioned in my jbossts-properties.xml file with a hardcoded list of recovery modules.
> This makes me wonder if/how the hornetq recovery (org.hornetq.jms.server.recovery.HornetQXAResourceRecover) gets registered in wildfly..
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (WFLY-4023) javax.el.ImportHandler#importClass & #importPackage doesn't import WEB-INF/classes
by Patrick Garner (JIRA)
[ https://issues.jboss.org/browse/WFLY-4023?page=com.atlassian.jira.plugin.... ]
Patrick Garner updated WFLY-4023:
---------------------------------
Steps to Reproduce:
{code:title=Bar.java|borderStyle=solid}
@ManagedBean(eager=true)
@ApplicationScoped
public class EnumConfig {
@PostConstruct
public void init() {
System.out.println("Testing 123...");
FacesContext.getCurrentInstance().getApplication().addELContextListener(
new ELContextListener() {
@Override
public void contextCreated(ELContextEvent event) {
System.out.println("Testing 456...");
event.getELContext().getImportHandler().importClass(
"foo.bar.business.model.enumeration.YesOrNo");
//importHandler.importPackage(
// "foo.bar.business.model.enumeration.preference");
Class<?> clazz = importHandler.resolveClass("YesOrNo");
System.out.println("clazz = " + clazz);
}
}
);
}
}
{code}
Here's the log:
{panel}
21:26:48,703 INFO [stdout] (MSC service thread 1-4) Testing 123...
21:39:11,976 INFO [stdout] (default task-9) Testing 456...
21:39:11,976 INFO [stdout] (default task-18) clazz = null
{panel}
Here's ImportHandler's internal map that keeps track of what's been imported and what was unable to be imported. Note "notAClass" gets populated with "foo.bar.business.model.enumeration.YesOrNo"
{noformat}
importHandler = {javax.el.ImportHandler@15909}
classNameMap = {java.util.HashMap@15910} size = 1
[0] = {java.util.HashMap$Node@15923}"YesOrNo" -> "foo.bar.business.model.enumeration.YesOrNo"
classMap = {java.util.HashMap@15911} size = 0
staticNameMap = {java.util.HashMap@15912} size = 0
notAClass = {java.util.HashSet@15913} size = 1
[0] = {java.lang.String@15030}"foo.bar.business.model.enumeration.YesOrNo"
packages = {java.util.ArrayList@15914} size = 1
[0] = {java.lang.String@15926}"java.lang"
{noformat}
was:
{code:title=Bar.java|borderStyle=solid}
@ManagedBean(eager=true)
@ApplicationScoped
public class EnumConfig {
@PostConstruct
public void init() {
System.out.println("Testing 123...");
FacesContext.getCurrentInstance().getApplication().addELContextListener(
new ELContextListener() {
@Override
public void contextCreated(ELContextEvent event) {
System.out.println("Testing 456...");
event.getELContext().getImportHandler().importClass(
"foo.bar.business.model.enumeration.YesOrNo");
//importHandler.importPackage(
// "foo.bar.business.model.enumeration.preference");
Class<?> clazz = importHandler.resolveClass("YesOrNo");
System.out.println("clazz = " + clazz);
}
}
);
}
}
{code}
{noformat}
21:26:48,703 INFO [stdout] (MSC service thread 1-4) Testing 123...
21:39:11,976 INFO [stdout] (default task-9) Testing 456...
21:39:11,976 INFO [stdout] (default task-18) clazz = null
importHandler = {javax.el.ImportHandler@15909}
classNameMap = {java.util.HashMap@15910} size = 1
[0] = {java.util.HashMap$Node@15923}"YesOrNo" -> "foo.bar.business.model.enumeration.YesOrNo"
classMap = {java.util.HashMap@15911} size = 0
staticNameMap = {java.util.HashMap@15912} size = 0
notAClass = {java.util.HashSet@15913} size = 1
[0] = {java.lang.String@15030}"foo.bar.business.model.enumeration.YesOrNo"
packages = {java.util.ArrayList@15914} size = 1
[0] = {java.lang.String@15926}"java.lang"
{noformat}
> javax.el.ImportHandler#importClass & #importPackage doesn't import WEB-INF/classes
> ----------------------------------------------------------------------------------
>
> Key: WFLY-4023
> URL: https://issues.jboss.org/browse/WFLY-4023
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Affects Versions: 8.1.0.Final
> Environment: Win7, Wildfly 8.1.0.Final
> Reporter: Patrick Garner
> Assignee: Farah Juma
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> ImportHandler is not importing classes in WEB-INF/classes and, thus, developers are unable to import classes into the EL evaluation environment per EL 3.0 spec. section 1.22.2 "Imports of Packages, Classes, and Static Fields"
> Here's the ImportHandler relevant code (https://github.com/jboss/jboss-el-api_spec/blob/master/src/main/java/java...)
> {code:java}
> private Class<?> getClassFor(String className) {
> if (!notAClass.contains(className)) {
> try {
> return Class.forName(className, false, getClass().getClassLoader());
> } catch (ClassNotFoundException ex) {
> notAClass.add(className);
> }
> }
> return null;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (WFLY-4024) Provide a way to allow applications to set the arjuna checked action factory
by Tom Jenkinson (JIRA)
Tom Jenkinson created WFLY-4024:
-----------------------------------
Summary: Provide a way to allow applications to set the arjuna checked action factory
Key: WFLY-4024
URL: https://issues.jboss.org/browse/WFLY-4024
Project: WildFly
Issue Type: Enhancement
Components: Transactions
Reporter: Tom Jenkinson
Assignee: Tom Jenkinson
Arjuna allows users to provide a checked action factory to provide user defined behavior after an atomic action completes. Due to the fact that the factory is static a user cannot reliably override the default no-op version.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (WFLY-4023) javax.el.ImportHandler#importClass & #importPackage doesn't import WEB-INF/classes
by Tomaz Cerar (JIRA)
[ https://issues.jboss.org/browse/WFLY-4023?page=com.atlassian.jira.plugin.... ]
Tomaz Cerar updated WFLY-4023:
------------------------------
Steps to Reproduce:
{code:title=Bar.java|borderStyle=solid}
@ManagedBean(eager=true)
@ApplicationScoped
public class EnumConfig {
@PostConstruct
public void init() {
System.out.println("Testing 123...");
FacesContext.getCurrentInstance().getApplication().addELContextListener(
new ELContextListener() {
@Override
public void contextCreated(ELContextEvent event) {
System.out.println("Testing 456...");
event.getELContext().getImportHandler().importClass(
"foo.bar.business.model.enumeration.YesOrNo");
//importHandler.importPackage(
// "foo.bar.business.model.enumeration.preference");
Class<?> clazz = importHandler.resolveClass("YesOrNo");
System.out.println("clazz = " + clazz);
}
}
);
}
}
{code}
{noformat}
21:26:48,703 INFO [stdout] (MSC service thread 1-4) Testing 123...
21:39:11,976 INFO [stdout] (default task-9) Testing 456...
21:39:11,976 INFO [stdout] (default task-18) clazz = null
importHandler = {javax.el.ImportHandler@15909}
classNameMap = {java.util.HashMap@15910} size = 1
[0] = {java.util.HashMap$Node@15923}"YesOrNo" -> "foo.bar.business.model.enumeration.YesOrNo"
classMap = {java.util.HashMap@15911} size = 0
staticNameMap = {java.util.HashMap@15912} size = 0
notAClass = {java.util.HashSet@15913} size = 1
[0] = {java.lang.String@15030}"foo.bar.business.model.enumeration.YesOrNo"
packages = {java.util.ArrayList@15914} size = 1
[0] = {java.lang.String@15926}"java.lang"
{noformat}
was:
{code:title=Bar.java|borderStyle=solid}
@ManagedBean(eager=true)
@ApplicationScoped
public class EnumConfig {
@PostConstruct
public void init() {
System.out.println("Testing 123...");
FacesContext.getCurrentInstance().getApplication().addELContextListener(
new ELContextListener() {
@Override
public void contextCreated(ELContextEvent event) {
System.out.println("Testing 456...");
event.getELContext().getImportHandler().importClass(
"foo.bar.business.model.enumeration.YesOrNo");
//importHandler.importPackage(
// "foo.bar.business.model.enumeration.preference");
Class<?> clazz = importHandler.resolveClass("YesOrNo");
System.out.println("clazz = " + clazz);
}
}
);
}
}
21:26:48,703 INFO [stdout] (MSC service thread 1-4) Testing 123...
21:39:11,976 INFO [stdout] (default task-9) Testing 456...
21:39:11,976 INFO [stdout] (default task-18) clazz = null
importHandler = {javax.el.ImportHandler@15909}
classNameMap = {java.util.HashMap@15910} size = 1
[0] = {java.util.HashMap$Node@15923}"YesOrNo" -> "foo.bar.business.model.enumeration.YesOrNo"
classMap = {java.util.HashMap@15911} size = 0
staticNameMap = {java.util.HashMap@15912} size = 0
notAClass = {java.util.HashSet@15913} size = 1
[0] = {java.lang.String@15030}"foo.bar.business.model.enumeration.YesOrNo"
packages = {java.util.ArrayList@15914} size = 1
[0] = {java.lang.String@15926}"java.lang"
> javax.el.ImportHandler#importClass & #importPackage doesn't import WEB-INF/classes
> ----------------------------------------------------------------------------------
>
> Key: WFLY-4023
> URL: https://issues.jboss.org/browse/WFLY-4023
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Affects Versions: 8.1.0.Final
> Environment: Win7, Wildfly 8.1.0.Final
> Reporter: Patrick Garner
> Assignee: Farah Juma
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> ImportHandler is not importing classes in WEB-INF/classes and, thus, developers are unable to import classes into the EL evaluation environment per EL 3.0 spec. section 1.22.2 "Imports of Packages, Classes, and Static Fields"
> Here's the ImportHandler relevant code (https://github.com/jboss/jboss-el-api_spec/blob/master/src/main/java/java...)
> {code:java}
> private Class<?> getClassFor(String className) {
> if (!notAClass.contains(className)) {
> try {
> return Class.forName(className, false, getClass().getClassLoader());
> } catch (ClassNotFoundException ex) {
> notAClass.add(className);
> }
> }
> return null;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (WFLY-4023) javax.el.ImportHandler#importClass & #importPackage doesn't import WEB-INF/classes
by Tomaz Cerar (JIRA)
[ https://issues.jboss.org/browse/WFLY-4023?page=com.atlassian.jira.plugin.... ]
Tomaz Cerar updated WFLY-4023:
------------------------------
Description:
ImportHandler is not importing classes in WEB-INF/classes and, thus, developers are unable to import classes into the EL evaluation environment per EL 3.0 spec. section 1.22.2 "Imports of Packages, Classes, and Static Fields"
Here's the ImportHandler relevant code (https://github.com/jboss/jboss-el-api_spec/blob/master/src/main/java/java...)
{code:java}
private Class<?> getClassFor(String className) {
if (!notAClass.contains(className)) {
try {
return Class.forName(className, false, getClass().getClassLoader());
} catch (ClassNotFoundException ex) {
notAClass.add(className);
}
}
return null;
}
{code}
was:
ImportHandler is not importing classes in WEB-INF/classes and, thus, developers are unable to import classes into the EL evaluation environment per EL 3.0 spec. section 1.22.2 "Imports of Packages, Classes, and Static Fields"
Here's the ImportHandler relevant code (https://github.com/jboss/jboss-el-api_spec/blob/master/src/main/java/java...)
private Class<?> getClassFor(String className) {
if (!notAClass.contains(className)) {
try {
return Class.forName(className, false, getClass().getClassLoader());
} catch (ClassNotFoundException ex) {
notAClass.add(className);
}
}
return null;
}
> javax.el.ImportHandler#importClass & #importPackage doesn't import WEB-INF/classes
> ----------------------------------------------------------------------------------
>
> Key: WFLY-4023
> URL: https://issues.jboss.org/browse/WFLY-4023
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Affects Versions: 8.1.0.Final
> Environment: Win7, Wildfly 8.1.0.Final
> Reporter: Patrick Garner
> Assignee: Farah Juma
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> ImportHandler is not importing classes in WEB-INF/classes and, thus, developers are unable to import classes into the EL evaluation environment per EL 3.0 spec. section 1.22.2 "Imports of Packages, Classes, and Static Fields"
> Here's the ImportHandler relevant code (https://github.com/jboss/jboss-el-api_spec/blob/master/src/main/java/java...)
> {code:java}
> private Class<?> getClassFor(String className) {
> if (!notAClass.contains(className)) {
> try {
> return Class.forName(className, false, getClass().getClassLoader());
> } catch (ClassNotFoundException ex) {
> notAClass.add(className);
> }
> }
> return null;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (WFLY-4023) javax.el.ImportHandler#importClass & #importPackage doesn't import WEB-INF/classes
by Tomaz Cerar (JIRA)
[ https://issues.jboss.org/browse/WFLY-4023?page=com.atlassian.jira.plugin.... ]
Tomaz Cerar commented on WFLY-4023:
-----------------------------------
Yes, question is what is right fix, given that we are just repacking glassfish's EL impl.
Problem could as well be in upstream and was never found as TCK doesn't cover this scenario.
> javax.el.ImportHandler#importClass & #importPackage doesn't import WEB-INF/classes
> ----------------------------------------------------------------------------------
>
> Key: WFLY-4023
> URL: https://issues.jboss.org/browse/WFLY-4023
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Affects Versions: 8.1.0.Final
> Environment: Win7, Wildfly 8.1.0.Final
> Reporter: Patrick Garner
> Assignee: Farah Juma
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> ImportHandler is not importing classes in WEB-INF/classes and, thus, developers are unable to import classes into the EL evaluation environment per EL 3.0 spec. section 1.22.2 "Imports of Packages, Classes, and Static Fields"
> Here's the ImportHandler relevant code (https://github.com/jboss/jboss-el-api_spec/blob/master/src/main/java/java...)
> private Class<?> getClassFor(String className) {
> if (!notAClass.contains(className)) {
> try {
> return Class.forName(className, false, getClass().getClassLoader());
> } catch (ClassNotFoundException ex) {
> notAClass.add(className);
> }
> }
> return null;
> }
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months
[JBoss JIRA] (WFLY-4023) javax.el.ImportHandler#importClass & #importPackage doesn't import WEB-INF/classes
by Patrick Garner (JIRA)
[ https://issues.jboss.org/browse/WFLY-4023?page=com.atlassian.jira.plugin.... ]
Patrick Garner updated WFLY-4023:
---------------------------------
Steps to Reproduce:
{code:title=Bar.java|borderStyle=solid}
@ManagedBean(eager=true)
@ApplicationScoped
public class EnumConfig {
@PostConstruct
public void init() {
System.out.println("Testing 123...");
FacesContext.getCurrentInstance().getApplication().addELContextListener(
new ELContextListener() {
@Override
public void contextCreated(ELContextEvent event) {
System.out.println("Testing 456...");
event.getELContext().getImportHandler().importClass(
"foo.bar.business.model.enumeration.YesOrNo");
//importHandler.importPackage(
// "foo.bar.business.model.enumeration.preference");
Class<?> clazz = importHandler.resolveClass("YesOrNo");
System.out.println("clazz = " + clazz);
}
}
);
}
}
21:26:48,703 INFO [stdout] (MSC service thread 1-4) Testing 123...
21:39:11,976 INFO [stdout] (default task-9) Testing 456...
21:39:11,976 INFO [stdout] (default task-18) clazz = null
importHandler = {javax.el.ImportHandler@15909}
classNameMap = {java.util.HashMap@15910} size = 1
[0] = {java.util.HashMap$Node@15923}"YesOrNo" -> "foo.bar.business.model.enumeration.YesOrNo"
classMap = {java.util.HashMap@15911} size = 0
staticNameMap = {java.util.HashMap@15912} size = 0
notAClass = {java.util.HashSet@15913} size = 1
[0] = {java.lang.String@15030}"foo.bar.business.model.enumeration.YesOrNo"
packages = {java.util.ArrayList@15914} size = 1
[0] = {java.lang.String@15926}"java.lang"
was:
@ManagedBean(eager=true)
@ApplicationScoped
public class EnumConfig {
@PostConstruct
public void init() {
System.out.println("Testing 123...");
FacesContext.getCurrentInstance().getApplication().addELContextListener(
new ELContextListener() {
@Override
public void contextCreated(ELContextEvent event) {
System.out.println("Testing 456...");
event.getELContext().getImportHandler().importClass(
"foo.bar.business.model.enumeration.YesOrNo");
//importHandler.importPackage(
// "foo.bar.business.model.enumeration.preference");
Class<?> clazz = importHandler.resolveClass("YesOrNo");
System.out.println("clazz = " + clazz);
}
}
);
}
}
21:26:48,703 INFO [stdout] (MSC service thread 1-4) Testing 123...
21:39:11,976 INFO [stdout] (default task-9) Testing 456...
21:39:11,976 INFO [stdout] (default task-18) clazz = null
importHandler = {javax.el.ImportHandler@15909}
classNameMap = {java.util.HashMap@15910} size = 1
[0] = {java.util.HashMap$Node@15923}"YesOrNo" -> "foo.bar.business.model.enumeration.YesOrNo"
classMap = {java.util.HashMap@15911} size = 0
staticNameMap = {java.util.HashMap@15912} size = 0
notAClass = {java.util.HashSet@15913} size = 1
[0] = {java.lang.String@15030}"foo.bar.business.model.enumeration.YesOrNo"
packages = {java.util.ArrayList@15914} size = 1
[0] = {java.lang.String@15926}"java.lang"
> javax.el.ImportHandler#importClass & #importPackage doesn't import WEB-INF/classes
> ----------------------------------------------------------------------------------
>
> Key: WFLY-4023
> URL: https://issues.jboss.org/browse/WFLY-4023
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Affects Versions: 8.1.0.Final
> Environment: Win7, Wildfly 8.1.0.Final
> Reporter: Patrick Garner
> Assignee: Farah Juma
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> ImportHandler is not importing classes in WEB-INF/classes and, thus, developers are unable to import classes into the EL evaluation environment per EL 3.0 spec. section 1.22.2 "Imports of Packages, Classes, and Static Fields"
> Here's the ImportHandler relevant code (https://github.com/jboss/jboss-el-api_spec/blob/master/src/main/java/java...)
> private Class<?> getClassFor(String className) {
> if (!notAClass.contains(className)) {
> try {
> return Class.forName(className, false, getClass().getClassLoader());
> } catch (ClassNotFoundException ex) {
> notAClass.add(className);
> }
> }
> return null;
> }
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 8 months