• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Missing type arguments for generic class JList<E>

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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: 4576
47
  • Mark post as helpful
  • send pies
  • 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.
 
Did you just should on me? You should read this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic