Jump to content
  • 0

L2J-Eclipse compile bug


Question

Posted

Rev: Newest

[javac] C:\Server\workspace\L2_Gameserver\java\net\sf\l2j\gameserver\datatables\ItemTable.java:295: incomparable types: java.lang.Enum<capture#258 of ?> and net.sf.l2j.gameserver.templates.L2WeaponType
   [javac]         if (item.type == L2WeaponType.NONE)
   [javac]                       ^
   [javac] C:\Server\workspace\L2_Gameserver\java\net\sf\l2j\gameserver\datatables\ItemTable.java:345: incomparable types: java.lang.Enum<capture#83 of ?> and net.sf.l2j.gameserver.templates.L2WeaponType
   [javac]         if (item.type == L2WeaponType.PET)
   [javac]                       ^
   [javac] C:\Server\workspace\L2_Gameserver\java\net\sf\l2j\gameserver\datatables\ItemTable.java:416: incomparable types: java.lang.Enum<capture#909 of ?> and net.sf.l2j.gameserver.templates.L2ArmorType
   [javac]         if (item.type == L2ArmorType.PET)
   [javac]                       ^
   [javac] C:\Server\workspace\L2_Gameserver\java\net\sf\l2j\gameserver\handler\itemhandlers\Potions.java:415: incomparable types: net.sf.l2j.gameserver.model.L2Effect.EffectType and java.lang.Enum<capture#179 of ?>
   [javac] 			if (e.getEffectType() == effectType)
   [javac] 			                      ^
   [javac] C:\Server\workspace\L2_Gameserver\java\net\sf\l2j\gameserver\skills\DocumentItem.java:155: inconvertible types
   [javac] found   : java.lang.Enum<capture#562 of ?>
   [javac] required: net.sf.l2j.gameserver.templates.L2ArmorType
   [javac]         if (_currentItem.type instanceof L2ArmorType) _currentItem.item = new L2Armor(
   [javac]                         ^
   [javac] C:\Server\workspace\L2_Gameserver\java\net\sf\l2j\gameserver\skills\DocumentItem.java:156: inconvertible types
   [javac] found   : java.lang.Enum<capture#812 of ?>
   [javac] required: net.sf.l2j.gameserver.templates.L2ArmorType
   [javac]         		(L2ArmorType) _currentItem.type, _currentItem.set);
   [javac]         		                          ^
   [javac] C:\Server\workspace\L2_Gameserver\java\net\sf\l2j\gameserver\skills\DocumentItem.java:157: inconvertible types
   [javac] found   : java.lang.Enum<capture#63 of ?>
   [javac] required: net.sf.l2j.gameserver.templates.L2WeaponType
   [javac]         else if (_currentItem.type instanceof L2WeaponType) _currentItem.item = new L2Weapon(
   [javac]                              ^
   [javac] C:\Server\workspace\L2_Gameserver\java\net\sf\l2j\gameserver\skills\DocumentItem.java:158: inconvertible types
   [javac] found   : java.lang.Enum<capture#461 of ?>
   [javac] required: net.sf.l2j.gameserver.templates.L2WeaponType
   [javac]         		(L2WeaponType) _currentItem.type, _currentItem.set);
   [javac]         		                           ^
   [javac] C:\Server\workspace\L2_Gameserver\java\net\sf\l2j\gameserver\skills\DocumentItem.java:159: inconvertible types
   [javac] found   : java.lang.Enum<capture#583 of ?>
   [javac] required: net.sf.l2j.gameserver.templates.L2EtcItemType
   [javac]         else if (_currentItem.type instanceof L2EtcItemType) _currentItem.item = new L2EtcItem(
   [javac]                              ^
   [javac] C:\Server\workspace\L2_Gameserver\java\net\sf\l2j\gameserver\skills\DocumentItem.java:160: inconvertible types
   [javac] found   : java.lang.Enum<capture#474 of ?>
   [javac] required: net.sf.l2j.gameserver.templates.L2EtcItemType
   [javac]         		(L2EtcItemType) _currentItem.type, _currentItem.set);
   [javac]         		                            ^
   [javac] C:\Server\workspace\L2_Gameserver\java\net\sf\l2j\gameserver\skills\SkillsEngine.java:147: inconvertible types
   [javac] found   : java.lang.Enum<capture#249 of ?>
   [javac] required: net.sf.l2j.gameserver.templates.L2EtcItemType
   [javac]                 list.add(new L2EtcItem((L2EtcItemType)item.type, item.set));
   [javac]                                                           ^
   [javac] Note: C:\Server\workspace\L2_Gameserver\java\net\sf\l2j\gameserver\GeoEngine.java uses or overrides a deprecated API.
   [javac] Note: Recompile with -Xlint:deprecation for details.
   [javac] 11 errors

BUILD FAILED

 

How to fix ?

2 answers to this question

Recommended Posts

  • 0
Posted

Please do not report here again, we have a forum.

We are inactive for a few days we will start working soon and the project will open.

 

Guest
This topic is now closed to further replies.


  • Posts

    • 📢 ¡ATENCIÓN JUGADORES DE LINEAGE 2! 📢   ¡L2 Crest Converter ha llegado! El programa creado por PulserX para obtener crests de clan (banderas) que realmente funciona, programado y distribuido de manera gratuita a todo el mundo por su humilde servidor.   ¿Cansado de que el viejo CrestMaker falle y arruine tus imágenes en Windows 10/11? Hemos creado una solución actualizada.   ✅ Optimizado para Windows 10/11 ✅ Convierte PNG/JPG perfectamente ✅ Adiós a las imágenes cuadriculadas   L2 Crest Converter es la herramienta que garantiza que tu crest se vea tal como la diseñaste. Descárgalo y velo en acción aquí: 👉 https://youtu.be/OVsoi5Vaj7M?si=mhE8Aet0w5nwo6ZE 👉 https://youtu.be/OVsoi5Vaj7M?si=mhE8Aet0w5nwo6ZE 👉 https://youtu.be/OVsoi5Vaj7M?si=mhE8Aet0w5nwo6ZE    
    • New update! A gift coupon system has been added. Now you can activate gift coupons directly in the bot: Open "My Profile" Tap "Activate gift coupon" Enter the coupon code The balance will be topped up automatically. Received a coupon? Activate it and top up your balance. Buy Telegram Stars with maximum benefit in our bot
    • New update! A gift coupon system has been added. Now you can activate gift coupons directly in the bot: Open "My Profile" Tap "Activate gift coupon" Enter the coupon code The balance will be topped up automatically. Received a coupon? Activate it and top up your balance. Buy Telegram Stars with maximum benefit in our bot
    • New update! A gift coupon system has been added. Now you can activate gift coupons directly in the bot: Open "My Profile" Tap "Activate gift coupon" Enter the coupon code The balance will be topped up automatically. Received a coupon? Activate it and top up your balance. Buy Telegram Stars with maximum benefit in our bot
    • Dear users! We are happy to announce a major update of our bot! What’s new: Long-term number rental You can now rent virtual numbers for a long period (hours, days, or months)! This is perfect for those who need constant access to a number to receive SMS from various services. Number history A new feature allows you to view all your rented numbers in one place! You can: • See the full history of all numbers (instant and long-term) • View all received SMS codes • Return to active numbers to receive additional SMS • See the status of each number Gift coupon system You can now activate gift coupons directly in the bot! Just go to your profile and click “Activate gift coupon” — your balance will be topped up automatically! Chinese language Full support for the Chinese language has been added! The bot is now available in three languages: Russian, English, and Chinese. Switching languages has become even more convenient. Improved rental process Before purchasing a number, detailed service information is now displayed: • Service name • Ability to receive repeated SMS • Rental duration • Cost This will help you make a more informed decision before renting. Quick rental The “Virtual numbers (SMS)” button has now been renamed to “Quick rental” for greater clarity and convenience. Go to the SMS service
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock