[JBoss JIRA] (FORGE-1836) Parse from Java 1.6 code -> Java 1.7 code.
by Daniel Cunha (JIRA)
Daniel Cunha created FORGE-1836:
-----------------------------------
Summary: Parse from Java 1.6 code -> Java 1.7 code.
Key: FORGE-1836
URL: https://issues.jboss.org/browse/FORGE-1836
Project: Forge
Issue Type: Feature Request
Reporter: Daniel Cunha
It has class that implements AutoCloseable, but we're still using finally to close streams and etc.
We can use:
try (stream) {
}
and kill the finally block.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 7 months
[JBoss JIRA] (FORGE-1836) Parse from Java 1.6 code -> Java 1.7 code.
by Daniel Cunha (JIRA)
[ https://issues.jboss.org/browse/FORGE-1836?page=com.atlassian.jira.plugin... ]
Daniel Cunha updated FORGE-1836:
--------------------------------
Description:
It has class that implements AutoCloseable, but we're still using finally to close streams and etc.
We can use (eg):
try (stream) {
}
and kill the finally block.
was:
It has class that implements AutoCloseable, but we're still using finally to close streams and etc.
We can use:
try (stream) {
}
and kill the finally block.
> Parse from Java 1.6 code -> Java 1.7 code.
> ------------------------------------------
>
> Key: FORGE-1836
> URL: https://issues.jboss.org/browse/FORGE-1836
> Project: Forge
> Issue Type: Feature Request
> Reporter: Daniel Cunha
>
> It has class that implements AutoCloseable, but we're still using finally to close streams and etc.
> We can use (eg):
> try (stream) {
> }
> and kill the finally block.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 7 months
[JBoss JIRA] (FORGE-1834) Furnace should not require a public constructor to proxy classes/services
by George Gastaldi (JIRA)
George Gastaldi created FORGE-1834:
--------------------------------------
Summary: Furnace should not require a public constructor to proxy classes/services
Key: FORGE-1834
URL: https://issues.jboss.org/browse/FORGE-1834
Project: Forge
Issue Type: Enhancement
Components: Furnace (Container)
Affects Versions: 2.5.0.Final
Reporter: George Gastaldi
Fix For: 2.x Future
When proxying classes using Furnace's proxy mechanism, it requires a public constructor or extract an interface for it.
As for FORGE-1826, Custom Exception types should require String in the public constructors, however we still need the default constructor due to this constraint in the proxy implementation (Javassist)
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 7 months