Have NativeJavaPackage constructor that throws a ClassNotFoundException

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b93
    • Verified

      When people misspell a class name with packages, e.g.

      var ArrayList = java.util.ArrrayList
      var a = new ArrayList()

      they get an unhelpful error message:

      TypeError: [JavaPackage java.util.ArrrayList] is not a function

      We should add a @Constructor to NativeJavaPackage that simply throws a ClassNotFoundException to better inform the users of the nature of the error.

            Assignee:
            Attila Szegedi
            Reporter:
            Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: