Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4468

ImportHandler fails to import correct class after cached "NotFound"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 9.0.0, 8.6.3
    • Fix Version/s: 9.0.1
    • Component/s: ZK Interpreter
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 9.0.1 S1

      Description

      Steps to Reproduce

      run the attached test case (isolated example)

      zkfiddle: http://zkfiddle.org/sample/1e8gaj7/14-EL-exception-on-import (more integrated with ZK)

      Current Result

      importing a previously failed/cached class name causes an exception

      The class [zk.support.test.ImportHandlerTest] could not be imported 
        as it conflicts with [org.zkoss.zel.ImportHandler$NotFound] which has already been imported
      org.zkoss.zel.ELException: The class [zk.support.test.ImportHandlerTest] could not be imported 
        as it conflicts with [org.zkoss.zel.ImportHandler$NotFound] which has already been imported
      	at org.zkoss.zel.ImportHandler.importClass(ImportHandler.java:135)
      	at zk.support.test.ImportHandlerTest.testReImportAfterFailedResolve(ImportHandlerTest.java:15)
      

      Expected Result

      a cached ImportHandler$NotFound should not prevent a correct import later
      instead the successfully imported class can replace the cached NotFound

      Debug Information

      side effect of ZK-4200

      Workaround

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rudyhuang rudyhuang
              Reporter:
              cor3000 cor3000
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Time Spent - 1 hour Remaining Estimate - 3 hours
                  3h
                  Logged:
                  Time Spent - 1 hour Remaining Estimate - 3 hours Time Not Required
                  1h