• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Missing type arguments for generic class JList<E>

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,    I have recently moved my development work from NetBeans8/JDK1.8 to NetBeans11/JDK11.

A significant number of errors are now present in the code generated by the GUI builder.

Here is the first:

C:\adata\java\NB11\J3-10\src\REN\My_Frame.java:736: warning: [rawtypes] found raw type: JList
 Output_Type = new javax.swing.JList();
 missing type arguments for generic class JList<E>
 where E is a type-variable:
 E extends Object declared in class JList

I have found that the error can be solved if the JList is deleted from the gui builder, and then manually rebuilt.  However, this is very tedious,
and there is always the possibility that I can introduce bugs into code that is already working.

Is there a simpler way to fix these gui builder issues ?

Thank you
Roy
       
 
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They aren't errors, they're warnings.
You can ignore them if you don't want to have to go through and give them proper types.
 
reply
    Bookmark Topic Watch Topic
  • New Topic