2 Replies Latest reply on Aug 6, 2013 3:47 PM by pmm

    Drop JDT for JSR-199 in jastow

    pmm

      I wanted to post this in "WildFly Development" but can't post there.

       

      I wanted to ask whether there are any plans to replace the Eclipse JDT compiler in jastow (JSP implementation) with JSR-199 (Java Compiler API)? The advantage would be that we could save about 1.5 MB from the final archive size. The downside would be that JSPs would require a JDK and would no longer work on a JRE. Currently the JSP refernce implementation uses JSR-199.

        • 1. Re: Drop JDT for JSR-199 in jastow
          swd847

          We don't really have the resources to do this, and it would likely result in some compatibility problems. It also might result in different behaviour on different JDK's, which would be a problem.

          • 2. Re: Drop JDT for JSR-199 in jastow
            pmm

            Stuart Douglas wrote:

             

            We don't really have the resources to do this, ...

             

            Well it would be one class that's about 500 LoC that can be taken either from the RI or the java.net project. Nothing compared to let's say writing a full servlet implementaiton from scratch.

             

            Stuart Douglas wrote:

             

            ... and it would likely result in some compatibility problems. It also might result in different behaviour on different JDK's, which would be a problem.

            Well that's what we have TCKs for. Given that WildFly depends on on sun.misc.Unsafe and sun.reflect.ReflectionFactory I have a hard time understanding this argument.