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: a...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to