You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The classes for non-application globals are only generated during the first run because they can't be reloaded
2100
+
// by the class loader during hot reload
2101
+
// However, we need to make sure the priorities used by non-application globals do not conflict
2102
+
// with priorities of application globals that are regenerated during each hot reload
2103
+
// Therefore, the initial priority is increased by the number of all globals ever found
2104
+
// For example, if there are three globals [A, B, C] (A and C are non-application classes)
2105
+
// The intial priority during the first hot reload will be "-1000 + 3 = 997"
2106
+
// If a global D is added afterwards, the initial priority during the subsequent hot reload will be "-1000 + 4 = 996"
2107
+
// If the global D is removed, the initial priority will still remain "-1000 + 4 = 996"
2108
+
// This way we can be sure that the priorities assigned to A and C will never conflict with priorities of B and D or any other application global class
Copy file name to clipboardExpand all lines: extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/devmode/TemplateGlobalDevModeTest.java
0 commit comments