Ext.app.Controller.views are not loaded by Application

REQUIRED INFORMATION

Ext version tested:

Ext 4.0.7, 4.1.2 and 4.1.3

Browser versions tested against:

Chrome

IE

FF

DOCTYPE tested against:

HTML5

Description:

When defining 'views' on a controller, and that controller would be used in an Application, one would expect it would by loaded BEFORE the Application.launch() callback. As stated in several comments in the manual, this isn't the case.

Steps to reproduce the problem:
Load up an Application with a Controller with a View, where the view is declared in the views-property on the controller. Note how the view is not available after launch so JavaScript breaks.

The result that was expected:
A working application

The result that occurs instead:
A JavaScript error because the view-class isn't loaded

Twitter - @evantrimboli
Former Sencha framework engineer, available for consulting.
As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

I'm trying to narrow down our project to pinpoint the cause of the issue. In our project we still have to add all Ext.app.Controller.views and Ext.app.Controller.models to the Ext.app.Controller.requires by hand to make stuff work.

My idea was to add some more requirements to the controller in the example you sent, to test the loading of dependencies. However i stranded after adding a simple Model. (Of course this might be fixed by adding Ext.require() for some classes above my App, but shouldn't this work out of the box?)