You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2021/06/14 21:21:07 UTC
[Bug 65377] New: Migrate Jasper's use of deprecated boxed primitive
constructors
https://bz.apache.org/bugzilla/show_bug.cgi?id=65377
Bug ID: 65377
Summary: Migrate Jasper's use of deprecated boxed primitive
constructors
Product: Tomcat 9
Version: 9.0.46
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
Assignee: dev@tomcat.apache.org
Reporter: adam@labkey.com
Target Milestone: -----
JDK 9 deprecated all Boolean, Byte, Character, Double, Float, Integer, Long,
and Short constructors, see
https://www.oracle.com/java/technologies/javase/9-deprecated-features.html#JDK-8065614.
JDK 16 then marked them as forRemoval=true.
Jasper generates code that uses these deprecated constructors, when binding tag
attributes to setters. This results in fairly adamant warnings when compiling
on javac (not sure how JDT reacts). For now, the generated code compiles and
the warnings could be disabled, but they're clearly telling us the JDK will
remove support in the future.
JDK documentation suggests replacing use of boxed primitive constructors with
auto-boxing or valueOf() static factory methods. JspUtil.java appears to
contain the code that needs adjusting.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 65377] Migrate Jasper's use of deprecated boxed primitive
constructors
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65377
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
OS| |All
Resolution|--- |FIXED
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for reporting this.
Fixed in:
- 10.1.x for 10.1.0-M2 onwards
- 10.0.x for 10.0.8 onwards
- 9.0.x for 9.0.49 onwards
- 8.5.x for 8.5.69 onwards
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org