NicolaIsotta commented on PR #9077:
URL: https://github.com/apache/netbeans/pull/9077#issuecomment-3662136645

   I tried to remove the singleton from DefaultFaceletsLibraries, but it fails 
when the jsf impl uses the jakarta namespace:
   <details>
   <summary>Exception</summary>
   <pre>
   java.lang.VerifyError: Bad type on operand stack
   Exception Details:
     Location:
       
org/netbeans/modules/web/jsf/editor/facelets/mojarra/ConfigManager.publishPostConfigEvent()V
 @36: invokevirtual
     Reason:
       Type 'com/sun/faces/el/ELContextImpl' (current frame, stack[0]) is not 
assignable to 'javax/el/ELContext'
     Current Frame:
       bci: @36
       flags: { }
       locals: { 
'org/netbeans/modules/web/jsf/editor/facelets/mojarra/ConfigManager', 
'javax/faces/context/FacesContext', 'javax/faces/application/Application', 
'com/sun/faces/el/ELContextImpl' }
       stack: { 'com/sun/faces/el/ELContextImpl', 'java/lang/Class', 
'javax/faces/context/FacesContext' }
     Bytecode:
       0000000: b800 574c 2bb6 01ce 4d01 2bc0 005d b601
       0000010: d2a6 0072 bb01 d659 2cb6 01d8 b701 de4e
       0000020: 2d12 582b b601 e12b b601 e73a 0401 1904
       0000030: a500 0c2d 1904 b601 ebb6 01f1 2cb6 01f5
       0000040: 3a05 1905 be9e 0036 bb01 f959 2db7 01fb
       0000050: 3a06 1905 3a07 1907 be36 0803 3609 1509
       0000060: 1508 a200 1919 0715 0932 3a0a 190a 1906
       0000070: b901 fe02 0084 0901 a7ff e62b c000 5d2d
       0000080: b602 042c 2b13 0207 1301 d92c b602 09b1
       0000090:                                        
     Stackmap Table:
       
full_frame(@60,{Object[#11],Object[#88],Object[#473],Object[#482],Object[#492]},{})
       
full_frame(@94,{Object[#11],Object[#88],Object[#473],Object[#482],Object[#492],Object[#841],Object[#505],Object[#841],Integer,Integer},{})
       
full_frame(@123,{Object[#11],Object[#88],Object[#473],Object[#482],Object[#492],Object[#841]},{})
       chop_frame(@131,3)
   
        at 
org.netbeans.modules.web.jsf.editor.facelets.FaceletsLibrarySupport._findLibraries(FaceletsLibrarySupport.java:396)
        at 
org.netbeans.modules.web.jsf.editor.facelets.FaceletsLibrarySupport.findLibraries(FaceletsLibrarySupport.java:270)
        at 
org.netbeans.modules.web.jsf.editor.facelets.FaceletsLibrarySupport.getNamespaceLibraryMapping(FaceletsLibrarySupport.java:173)
        at 
org.netbeans.modules.web.jsf.editor.JsfSupportImpl.getLibrary(JsfSupportImpl.java:216)
        at 
org.netbeans.modules.web.jsf.editor.HtmlSourceTask.run(HtmlSourceTask.java:133)
        at 
org.netbeans.modules.web.jsf.editor.HtmlSourceTask.run(HtmlSourceTask.java:51)
        at 
org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
        at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288)
        at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
   [catch] at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
        at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
        at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403)
        at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
        at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2018)
   </pre>
   </details>
   
   Should I create a JakartaConfigManager which uses the new classes? Not sure 
if possible because com.sun.faces classes gonna overlap...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to